@@ -0,0 +1,6 @@
+{ %FAIL }
+{ This should normally fail compilation!}
+Begin
+{$ifndef}
+{$endif}
+end.
+{$ifopt}
@@ -0,0 +1,5 @@
+{$ASSERTIONS}
@@ -0,0 +1,19 @@
+{ This shouldc not compile, cdecl'ed constructor are not allowed }
+
+{$mode objfpc}
+type
+ tmyclass = class
+ constructor create; cdecl;
+ end;
+ constructor tmyclass.create;cdecl;
+ begin
+ tmyobject = object
+ constructor tmyobject.create;cdecl;
+ destructor destroy; cdecl;
+ destructor tmyclass.destroy;cdecl;
+ tmyclass = object
+ destructor done; cdecl;
+ destructor tmyclass.done;cdecl;