c++: constrained lambda error-recovery [PR108972]
[official-gcc.git] / gcc / testsuite / gnat.dg / prot6.adb
blobf33b0a2429df7c85f2d0f3247a3d8f6990fbfb73
1 -- { dg-do compile }
2 -- { dg-options "-gnatc" }
4 package body Prot6 is
6 protected body My_Type is
8 procedure Set (D : Integer) is
9 begin
10 I := D;
11 end Set;
13 function Get return Integer is
14 begin
15 return I;
16 end Get;
17 end My_Type;
19 procedure Dummy is null;
20 end Prot6;