gcc/testsuite/gnat.dg/specs/aggr8.ads
raw| 1 | -- PR ada/120665 |
| 2 | -- { dg-do compile } |
| 3 | -- { dg-options "-gnat2022" } |
| 4 | |
| 5 | package Aggr8 is |
| 6 | |
| 7 | type T is null record |
| 8 | with Aggregate => (Empty => Empty, Add_Named => Add_Named); |
| 9 | |
| 10 | function Empty return T is ([]); -- { dg-warning "empty|infinite" } |
| 11 | |
| 12 | procedure Add_Named (this : in out T; k : Integer; v : Integer) is null; |
| 13 | |
| 14 | end Aggr8; |