gcc/testsuite/gnat.dg/incomplete8.adb
raw| 1 | -- PR ada/114708 |
| 2 | -- Reported by Jere <[email protected]> |
| 3 | |
| 4 | -- { dg-do compile } |
| 5 | |
| 6 | procedure Incomplete8 is |
| 7 | |
| 8 | generic |
| 9 | type Element_Type(<>); |
| 10 | package Test_Incomplete_Formal is |
| 11 | type Element_Access is access Element_Type; |
| 12 | end Test_Incomplete_Formal; |
| 13 | |
| 14 | type Node; |
| 15 | |
| 16 | package P is new Test_Incomplete_Formal(Node); |
| 17 | |
| 18 | type Node is limited null record; |
| 19 | |
| 20 | begin |
| 21 | null; |
| 22 | end; |