c++: constrained lambda error-recovery [PR108972]
[official-gcc.git] / gcc / testsuite / gnat.dg / discr18.adb
blobbd3fd7944594f33015b4e54357ac929d155c3d57
1 -- { dg-do compile }
3 with Discr18_Pkg; use Discr18_Pkg;
5 procedure Discr18 is
7 String_10 : String (1..10) := "1234567890";
9 MD : Multiple_Discriminants (A => 10, B => 10) :=
10 Multiple_Discriminants'(A => 10,
11 B => 10,
12 S1 => String_10,
13 S2 => String_10);
14 MDE : Multiple_Discriminant_Extension (C => 10) :=
15 (MD with C => 10, S3 => String_10);
17 begin
18 Do_Something(MDE);
19 end;