mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 05:49:23 +02:00
* more fun testing :)
This commit is contained in:
parent
60c9982161
commit
4ff94d240d
6
tests/tbf/tb0131.pp
Normal file
6
tests/tbf/tb0131.pp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ %FAIL }
|
||||||
|
{ This should normally fail compilation!}
|
||||||
|
Begin
|
||||||
|
{$ifndef}
|
||||||
|
{$endif}
|
||||||
|
end.
|
6
tests/tbf/tb0132.pp
Normal file
6
tests/tbf/tb0132.pp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ %FAIL }
|
||||||
|
{ This should normally fail compilation!}
|
||||||
|
Begin
|
||||||
|
{$ifopt}
|
||||||
|
{$endif}
|
||||||
|
end.
|
5
tests/tbf/tb0133.pp
Normal file
5
tests/tbf/tb0133.pp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{ %FAIL }
|
||||||
|
{ This should normally fail compilation!}
|
||||||
|
Begin
|
||||||
|
{$ASSERTIONS}
|
||||||
|
end.
|
19
tests/tbf/tb0134.pp
Normal file
19
tests/tbf/tb0134.pp
Normal 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
19
tests/tbf/tb0135.pp
Normal 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
19
tests/tbf/tb0136.pp
Normal 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
19
tests/tbf/tb0137.pp
Normal 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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user