@@ -1,4 +1,3 @@
-{ %version=1.1 }
{ %FAIL }
{ Old file: tbf0345.pp }
{ }
{ %fail }
{ Old file: tbs0293.pp }
{ no error with variable name = type name }
-{ %VERSION=1.1 }
{$ifdef fpc}{$mode objfpc}{$endif}
type
{ in this mode, typed constants are read-only }
{ Interfaces only supported in v1.1 }
{ Should give the same error as /tbf/tb0125.pp }
@@ -1,5 +1,4 @@
{%skiptarget=$nothread }
{$mode delphi}
@@ -1,6 +1,5 @@
{$ifdef fpc}
{$mode objfpc}
{$macro on}
{ %OPT=-Sew -vw }
{$MODE OBJFPC}
{ Old file: tbs0203.pp }
{ problem with changed mangledname of procedures after use }
{ Old file: tbs0262.pp }
{ problems with virtual and overloaded methods }
{ Old file: tbs0353.pp }
{ %OPT=-Or }
{ test for full boolean eval and register usage with b+ }
{$R+}
var
{$MODE DELPHI}
const
GUID_NULL : TGUID = '{00000000-0000-0000-0000-000000000000}';
a : longint absolute 0;
i = interface;
c1 = widechar(0);
a = function ( ) : boolean;
{$ifdef fpc}{$MODE OBJFPC}{$endif}
uses sysutils;
__u64 = 0..High(Int64); // Create unsigned Int64 (with 63 bits)
{ %TARGET=linux,freebsd,darwin,solaris,aix,haiku }
{$linklib c}
procedure p1(const a:array of byte);
{ %CPU=i386 }
{ %target=win32 }
{$J+}
{$ifdef fpc}{$mode delphi}{$endif}
tmyinterface = interface
tc1 = class
uses ub0380;
procedure p1(s:string);overload;
w : widechar;
uses ub0386;
uses ub0391;
to2 = interface
b1,b2 : boolean;
c : char;
ta = array of longint;
myl = type longint;
uses
variants;
{ %recompile }
uses ub0421a;
uses ub0426;
err : boolean;
CUnicodeNormal1 : WideChar = WideChar($FEFF);
CUnicodeNormal2 : WideChar = #12;
a : cardinal;
Type
IMyInterface = Interface
uses ub0461;
{$ifdef go32v2}
{$define USE_INTERNAL_UNICODE}
{$M+}
Unit ub0426;
{****************************************************************}
{ CODE GENERATOR TEST PROGRAM }
{ By Carl Eric Codere }
{ %NOTE=This test requires a C library }
{ %cpu=i386,powerpc,powerpc64,x86_64,arm }
program trange1;
program tw24089;
@@ -57,5 +56,5 @@ end;
begin
with TMyClasstw24089.Create do
- Test;
+ Test;
end.
{%OPT=-Og}
{ This verifies if the strings are
correctly aligned, normally the generated assembler
{ %opt=-CR }
program test_class;
program testv1;
uses varutils;
program testv2;
uses variants,varutils;
program testv3;
program testv5;
{$ifopt R+}
program testv6;
program testv8;
{ %result=231 }
sysutils;
{ %skiptarget=go32v2 }
program test_fpu_excpetions;
{ %NORUN }
program thintdir;
program tinivar;
{ %SKIPTARGET=macos }
{ On macos it crashes when run.}