c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / aggr10.adb
blob6fbb8ed5d7a7f3a7b9db6528fb95ed0a894a80bb
1 -- { dg-do compile }
2 -- { dg-options "-O2" }
4 with Aggr10_Pkg; use Aggr10_Pkg;
6 procedure Aggr10 is
8 No_Name_Location : constant Name_Location :=
9 (Name => Name_Id'First,
10 Location => Int'First,
11 Source => Source_Id'First,
12 Except => False,
13 Found => False);
15 Name_Loc : Name_Location;
17 begin
18 Name_Loc := Get;
19 if Name_Loc = No_Name_Location then -- { dg-bogus "comparison always false" }
20 raise Program_Error;
21 end if;
22 Set (Name_Loc);
23 end;