Added further tests regarding the topic from revision 21687

git-svn-id: trunk@21688 -
This commit is contained in:
svenbarth 2012-06-24 10:27:01 +00:00
parent 8c95ea039f
commit 2d8796fa1a
5 changed files with 67 additions and 0 deletions

4
.gitattributes vendored
View File

@ -10723,6 +10723,10 @@ tests/test/tgeneric8.pp svneol=native#text/plain
tests/test/tgeneric80.pp svneol=native#text/pascal
tests/test/tgeneric81.pp svneol=native#text/pascal
tests/test/tgeneric82.pp svneol=native#text/pascal
tests/test/tgeneric83.pp svneol=native#text/pascal
tests/test/tgeneric84.pp svneol=native#text/pascal
tests/test/tgeneric85.pp svneol=native#text/pascal
tests/test/tgeneric86.pp svneol=native#text/pascal
tests/test/tgeneric9.pp svneol=native#text/plain
tests/test/tgoto.pp svneol=native#text/plain
tests/test/theap.pp svneol=native#text/plain

16
tests/test/tgeneric83.pp Normal file
View File

@ -0,0 +1,16 @@
{ %FAIL }
program tgeneric83;
{$mode delphi}
type
TTest<T> = record
end;
const
Test: ^TTest = Nil;
begin
end.

14
tests/test/tgeneric84.pp Normal file
View File

@ -0,0 +1,14 @@
{ %FAIL }
program tgeneric84;
{$mode objfpc}
type
generic TTest<T> = record
end;
PTest = ^TTest;
begin
end.

16
tests/test/tgeneric85.pp Normal file
View File

@ -0,0 +1,16 @@
{ %FAIL }
program tgeneric85;
{$mode objfpc}
type
generic TTest<T> = record
end;
const
Test: ^TTest = Nil;
begin
end.

17
tests/test/tgeneric86.pp Normal file
View File

@ -0,0 +1,17 @@
{ %NORUN }
program tgeneric86;
{$mode objfpc}{$H+}
{$modeswitch advancedrecords}
type
generic TTest<T> = record
type
PTest = ^TTest;
end;
begin
end.