Browse Source

* testing for cdecl and virtual methods (should not compile)

carl 23 years ago
parent
commit
b19503e084
1 changed files with 17 additions and 0 deletions
  1. 17 0
      tests/tbf/tb0130.pp

+ 17 - 0
tests/tbf/tb0130.pp

@@ -0,0 +1,17 @@
+{ %FAIL }
+
+{$mode objfpc}
+type
+ tmyclass = class
+  { you should not be able to have virtual methods which 
+    are noted as cdecl.
+  }
+  procedure myroutine;virtual;cdecl;
+ end;
+
+procedure tmyclass.myroutine;cdecl;
+begin
+end;
+
+Begin
+end.