mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 06:39:36 +02:00
20 lines
410 B
ObjectPascal
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.
|