fpc/tests/webtbs/tw7758a.pp
2015-02-23 22:48:15 +00:00

20 lines
410 B
ObjectPascal

{ %norun }
uses
{$ifdef unix}
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
{$endif}
sysutils;
{ just to make sure that no all wide->shortstring compile time conversions }
{ fail, but only those resulting in data loss }
const
cw = widestring('abc');
de = 'a'+shortstring(cw);
wc = widechar('a');
df = shortstring(wc)+'abcd';
dg = char(wc)+'abcd';
begin
end.