c++: constrained lambda error-recovery [PR108972]
[official-gcc.git] / gcc / testsuite / gnat.dg / predicate9.adb
blobebcfca7f8389502c9ce39ac7e6bd80ac1d9ed971
1 -- { dg-do compile }
2 procedure Predicate9 is
3 function Num (x : Integer) return Integer is (X + 1);
4 function name (X : String) return Integer is (X'Size);
5 function Post (One : Integer; Two : Integer) return Boolean;
7 generic
8 type T is private;
9 procedure Pro (Z : Integer) with Post =>
10 Post (Num (5), Two => Name ("yeah"));
12 function Post (One : Integer; Two : Integer) return Boolean
13 is (True);
15 procedure Pro (Z : Integer) is
16 begin
17 null;
18 end Pro;
19 begin
20 null;
21 end Predicate9;