mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:28:08 +02:00
23 lines
388 B
ObjectPascal
23 lines
388 B
ObjectPascal
{ %fail}
|
|
program tcpstr21a;
|
|
|
|
{$APPTYPE CONSOLE}
|
|
{$IFDEF FPC}
|
|
{$MODE DELPHIUNICODE}
|
|
{$ENDIF}
|
|
|
|
// Test that ansistring types has the same overload precedence when passing an UnicodeString constant
|
|
|
|
procedure TestStrConst(const S: AnsiString); overload;
|
|
begin
|
|
halt(1);
|
|
end;
|
|
procedure TestStrConst(const S: UTF8String); overload;
|
|
begin
|
|
halt(1);
|
|
end;
|
|
begin
|
|
TestStrConst('Test');
|
|
end.
|
|
|