소스 검색

+ add some tests for hint directives in context of arrays (both with the element and the index) that check that the hint is indeed generated

Sven/Sarah Barth 2 년 전
부모
커밋
8fa439e64d
5개의 변경된 파일79개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      tests/test/thintdir3a.pp
  2. 17 0
      tests/test/thintdir3b.pp
  3. 15 0
      tests/test/thintdir4a.pp
  4. 15 0
      tests/test/thintdir4b.pp
  5. 15 0
      tests/test/thintdir5.pp

+ 17 - 0
tests/test/thintdir3a.pp

@@ -0,0 +1,17 @@
+{ %FAIL }
+
+program thintdir3a;
+
+{$mode objfpc}
+{$warn 5043 error}
+
+type
+  TTest = 1..9 deprecated;
+
+  TRec = record
+    f: array of TTest;
+  end;
+
+begin
+
+end.

+ 17 - 0
tests/test/thintdir3b.pp

@@ -0,0 +1,17 @@
+{ %FAIL }
+
+program thintdir3b;
+
+{$mode objfpc}
+{$warn 5043 error}
+
+type
+  TTest = 1..9 deprecated;
+
+  TRec = record
+    f: array of array of TTest;
+  end;
+
+begin
+
+end.

+ 15 - 0
tests/test/thintdir4a.pp

@@ -0,0 +1,15 @@
+{ %FAIL }
+
+program thintdir4a;
+
+{$mode objfpc}
+{$warn 5043 error}
+
+type
+  TTest = 1..9 deprecated;
+
+  TTestArray = array of TTest;
+
+begin
+
+end.

+ 15 - 0
tests/test/thintdir4b.pp

@@ -0,0 +1,15 @@
+{ %FAIL }
+
+program thintdir4b;
+
+{$mode objfpc}
+{$warn 5043 error}
+
+type
+  TTest = 1..9 deprecated;
+
+  TTestArray = array of array of TTest;
+
+begin
+
+end.

+ 15 - 0
tests/test/thintdir5.pp

@@ -0,0 +1,15 @@
+{ %FAIL }
+
+program thintdir4a;
+
+{$mode objfpc}
+{$warn 5043 error}
+
+type
+  TTest = 1..9 deprecated;
+
+  TTestArray = array[TTest] of LongInt;
+
+begin
+
+end.