浏览代码

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

carl 23 年之前
父节点
当前提交
b19503e084
共有 1 个文件被更改,包括 17 次插入0 次删除
  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.