c++: constrained lambda error-recovery [PR108972]
[official-gcc.git] / gcc / testsuite / gnat.dg / suppress_initialization_pkg.ads
blob4128067158254762eeff616f1fafaaed6e8db271
1 with Interfaces; use Interfaces;
2 with System;
4 package Suppress_Initialization_Pkg is
6 type Discriminated_Type (Foo : Unsigned_8 := 0) is record
7 case Foo is
8 when 0 =>
9 Bar : Boolean;
10 when 1 =>
11 Baz : Unsigned_32;
12 when others =>
13 null;
14 end case;
15 end record;
17 for Discriminated_Type use record
18 Foo at 0 range 0 .. 7;
19 Bar at 1 range 0 .. 0;
20 Baz at 1 range 0 .. 31;
21 end record;
23 External : Discriminated_Type
24 with
25 Volatile,
26 Suppress_Initialization,
27 Address => System'To_Address (16#1234_5678#);
29 procedure Read;
31 end Suppress_Initialization_Pkg;