PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / semicolon4.C
blob5135ec14b1f80a97401ee17c8f31ed468a0df5c2
1 // PR c++/46890
2 // { dg-do compile }
4 struct OK1
6   int i;
7 } const *ok1_var;               // No complains
9 struct OK2;
10 extern OK2 ok2a_var;
12 struct OK2
14   int i;
15 } const &ok2_var = ok2a_var;    // No complains
17 struct OK3
19   int i;
20 } volatile (ok3_var);           // No complains
22 struct E1
24   int i;
25 } const;                        // { dg-error "'const' can only be specified for objects and functions" }
27 void foo (
28 struct E2
29 {                               // { dg-error "types may not be defined in parameter types" }
30   int i;
31 } volatile);
33 void bar (
34 struct E3
35 {                               // { dg-error "types may not be defined in parameter types" }
36   int i;
37 } const, int);