PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr68533.c
blob49e67a96168ec99a3bbb324ed7ee1c2dd3682f8f
1 /* PR c/68533 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 struct T { int t; };
7 void
8 f1 (
9 struct S * /* { dg-warning "declared inside parameter list will not be visible outside of this definition or declaration" } */
11 struct T *
15 y->t = 4;
18 void
19 f2 (
20 struct {int s;} * /* { dg-warning "anonymous struct declared inside parameter list will not be visible outside of this definition or declaration" } */
22 struct T *
26 y->t = 5;
29 void
30 f3 (
31 const void /* { dg-error "'void' as only parameter may not be qualified" } */
36 void
37 f4 (
38 void, /* { dg-error "'void' must be the only parameter" } */
39 ...
44 void
45 f5 (
46 int
47 x; /* { dg-error "parameter 'x' has just a forward declaration" } */
48 int y
53 void
54 f6 (
55 int
57 void /* { dg-error "'void' must be the only parameter" } */
62 void
63 f7 (
64 void, /* { dg-error "'void' must be the only parameter" } */
65 int y