]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add testcase for PR ada/114708
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 10 Jun 2024 10:12:21 +0000 (12:12 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 10 Jun 2024 10:14:18 +0000 (12:14 +0200)
gcc/testsuite/
PR ada/114708
* gnat.dg/incomplete8.adb: New test.

gcc/testsuite/gnat.dg/incomplete8.adb [new file with mode: 0644]

diff --git a/gcc/testsuite/gnat.dg/incomplete8.adb b/gcc/testsuite/gnat.dg/incomplete8.adb
new file mode 100644 (file)
index 0000000..63fef59
--- /dev/null
@@ -0,0 +1,22 @@
+-- PR ada/114708
+-- Reported by Jere <jhb.chat@gmail.com>
+
+-- { dg-do compile }
+
+procedure Incomplete8 is
+
+  generic
+    type Element_Type(<>);
+  package Test_Incomplete_Formal is
+    type Element_Access is access Element_Type;
+  end Test_Incomplete_Formal;
+
+  type Node;
+
+  package P is new Test_Incomplete_Formal(Node);
+
+  type Node is limited null record;
+   
+begin
+  null;
+end;