From e29af8de31ba4b73dcee82917c8cec60d53dfa82 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 10 Jun 2024 12:12:21 +0200 Subject: [PATCH] Add testcase for PR ada/114708 gcc/testsuite/ PR ada/114708 * gnat.dg/incomplete8.adb: New test. --- gcc/testsuite/gnat.dg/incomplete8.adb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gcc/testsuite/gnat.dg/incomplete8.adb diff --git a/gcc/testsuite/gnat.dg/incomplete8.adb b/gcc/testsuite/gnat.dg/incomplete8.adb new file mode 100644 index 00000000000..63fef59e866 --- /dev/null +++ b/gcc/testsuite/gnat.dg/incomplete8.adb @@ -0,0 +1,22 @@ +-- PR ada/114708 +-- Reported by Jere + +-- { 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;