c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / opt64.adb
blob6d287d301a13b4d78c5aa3a05e5b47c82013a2be
1 -- { dg-do run }
2 -- { dg-options "-O2" }
4 -- The issue which prompted the test is a compilation failure. Might
5 -- as well verify that the generated code performs as expected.
7 with opt64_pkg; use opt64_pkg;
9 procedure opt64 is
10 procedure assert (T : boolean) is
11 begin
12 if not T then
13 raise program_error;
14 end if;
15 end;
16 begin
17 Encode (1);
18 assert (last_hash = "1");
19 Encode (2);
20 assert (last_hash = "2");
21 Encode (3);
22 assert (last_hash = "3");
23 Encode (6);
24 assert (last_hash = "?");
25 end;