mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 09:59:27 +02:00
20 lines
378 B
ObjectPascal
20 lines
378 B
ObjectPascal
program av;
|
|
{$ifdef FPC}{$mode objfpc}{$h+}{$INTERFACES CORBA}{$endif}
|
|
{$ifdef mswindows}{$apptype console}{$endif}
|
|
uses
|
|
{$ifdef FPC}{$ifdef unix}cthreads,{$ifdef darwin}iosxwstr{$else}cwstring{$endif},{$endif}{$endif}sysutils;
|
|
type
|
|
testrecty = record
|
|
str: widestring;
|
|
int: integer;
|
|
end;
|
|
|
|
var
|
|
tr1,tr2: testrecty;
|
|
|
|
begin
|
|
tr1.str:= 'abc';
|
|
tr1.int:= 0;
|
|
tr2:= tr1;
|
|
end.
|