Browse Source

* Test adapted: RTTI is enabled for raw interfaces

Michaël Van Canneyt 2 years ago
parent
commit
82ed35ead0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tests/test/trtti15.pp

+ 4 - 2
tests/test/trtti15.pp

@@ -183,8 +183,10 @@ const
 begin
 begin
   Writeln('Testing interface ITestRaw');
   Writeln('Testing interface ITestRaw');
   { raw interfaces don't support $M+ currently }
   { raw interfaces don't support $M+ currently }
-  TestInterface(GetTypeData(TypeInfo(ITestRaw)), True, 'Test', 0{1}, [
-      MakeMethod('Test', ccReg, mkFunction, TypeInfo(LongInt), [])
+  TestInterface(GetTypeData(TypeInfo(ITestRaw)), True, 'Test',1, [
+      MakeMethod('Test', ccReg, mkFunction, TypeInfo(LongInt), [
+      MakeParam('$self', [pfHidden, pfSelf, pfAddress], TypeInfo(ITestRaw))
+      ])
     ]);
     ]);
 
 
   Writeln('Testing interface ITest');
   Writeln('Testing interface ITest');