c++: constrained lambda error-recovery [PR108972]
[official-gcc.git] / gcc / testsuite / gnat.dg / oconst2.adb
blobd4f45ad5d040546f6160ff11a67dae572829f3b9
1 -- { dg-do compile }
2 -- { dg-final { scan-assembler-not "elabs" } }
4 package body OCONST2 is
6 procedure check (arg : R) is
7 begin
8 if arg.u /= 1
9 or else arg.b.i1 /= 2
10 then
11 raise Program_Error;
12 end if;
13 end;
15 end;