c++: constrained lambda error-recovery [PR108972]
[official-gcc.git] / gcc / testsuite / gnat.dg / wide_boolean.adb
blob6cbbcf14c9171e735bd2625017727bde04c56621
1 -- { dg-do run }
3 with Wide_Boolean_Pkg; use Wide_Boolean_Pkg;
5 procedure Wide_Boolean is
7 R : TREC;
8 LB_TEST_BOOL : TBOOL;
10 begin
12 R.B := FALSE;
13 LB_TEST_BOOL := FALSE;
15 Modify (R.H, R.B);
16 if (R.B /= TRUE) then
17 raise Program_Error;
18 end if;
20 Modify (R.H, LB_TEST_BOOL);
21 R.B := LB_TEST_BOOL;
22 if (R.B /= TRUE) then
23 raise Program_Error;
24 end if;
26 end;