mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 20:49:16 +02:00
+ 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
This commit is contained in:
parent
30a1cde7a5
commit
8fa439e64d
17
tests/test/thintdir3a.pp
Normal file
17
tests/test/thintdir3a.pp
Normal file
@ -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
tests/test/thintdir3b.pp
Normal file
17
tests/test/thintdir3b.pp
Normal file
@ -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
tests/test/thintdir4a.pp
Normal file
15
tests/test/thintdir4a.pp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ %FAIL }
|
||||||
|
|
||||||
|
program thintdir4a;
|
||||||
|
|
||||||
|
{$mode objfpc}
|
||||||
|
{$warn 5043 error}
|
||||||
|
|
||||||
|
type
|
||||||
|
TTest = 1..9 deprecated;
|
||||||
|
|
||||||
|
TTestArray = array of TTest;
|
||||||
|
|
||||||
|
begin
|
||||||
|
|
||||||
|
end.
|
15
tests/test/thintdir4b.pp
Normal file
15
tests/test/thintdir4b.pp
Normal file
@ -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
tests/test/thintdir5.pp
Normal file
15
tests/test/thintdir5.pp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ %FAIL }
|
||||||
|
|
||||||
|
program thintdir4a;
|
||||||
|
|
||||||
|
{$mode objfpc}
|
||||||
|
{$warn 5043 error}
|
||||||
|
|
||||||
|
type
|
||||||
|
TTest = 1..9 deprecated;
|
||||||
|
|
||||||
|
TTestArray = array[TTest] of LongInt;
|
||||||
|
|
||||||
|
begin
|
||||||
|
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user