* more fun testing :)

This commit is contained in:
carl 2002-10-29 20:46:05 +00:00
parent 60c9982161
commit 4ff94d240d
7 changed files with 93 additions and 0 deletions

6
tests/tbf/tb0131.pp Normal file
View File

@ -0,0 +1,6 @@
{ %FAIL }
{ This should normally fail compilation!}
Begin
{$ifndef}
{$endif}
end.

6
tests/tbf/tb0132.pp Normal file
View File

@ -0,0 +1,6 @@
{ %FAIL }
{ This should normally fail compilation!}
Begin
{$ifopt}
{$endif}
end.

5
tests/tbf/tb0133.pp Normal file
View File

@ -0,0 +1,5 @@
{ %FAIL }
{ This should normally fail compilation!}
Begin
{$ASSERTIONS}
end.

19
tests/tbf/tb0134.pp Normal file
View File

@ -0,0 +1,19 @@
{ %FAIL }
{ This shouldc not compile, cdecl'ed constructor are not allowed }
{$mode objfpc}
type
tmyclass = class
constructor create; cdecl;
end;
constructor tmyclass.create;cdecl;
begin
end;
Begin
end.

19
tests/tbf/tb0135.pp Normal file
View File

@ -0,0 +1,19 @@
{ %FAIL }
{ This shouldc not compile, cdecl'ed constructor are not allowed }
{$mode objfpc}
type
tmyobject = object
constructor create; cdecl;
end;
constructor tmyobject.create;cdecl;
begin
end;
Begin
end.

19
tests/tbf/tb0136.pp Normal file
View File

@ -0,0 +1,19 @@
{ %FAIL }
{ This shouldc not compile, cdecl'ed constructor are not allowed }
{$mode objfpc}
type
tmyclass = class
destructor destroy; cdecl;
end;
destructor tmyclass.destroy;cdecl;
begin
end;
Begin
end.

19
tests/tbf/tb0137.pp Normal file
View File

@ -0,0 +1,19 @@
{ %FAIL }
{ This shouldc not compile, cdecl'ed constructor are not allowed }
{$mode objfpc}
type
tmyclass = object
destructor done; cdecl;
end;
destructor tmyclass.done;cdecl;
begin
end;
Begin
end.