Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / auto-init-pr102276-3.c
blobf113f46e29dcff9dfdc96ec67c35e58d829a266c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wtrivial-auto-var-init -ftrivial-auto-var-init=zero" } */
4 int g(int *, int *);
5 int f()
7 switch (0) {
8 int x; /* { dg-warning "cannot be initialized with" } */
9 int y; /* { dg-warning "cannot be initialized with" } */
10 default:
11 return g(&x, &y);
15 int g1(int, int);
16 int f1()
18 switch (0) {
19 int x; /* { dg-warning "cannot be initialized with" } */
20 int y; /* { dg-warning "cannot be initialized with" } */
21 default:
22 return g1(x, y);
26 struct S
28 char a;
29 int b;
31 int g2(int);
32 int f2(int input)
34 switch (0) {
35 struct S x; /* { dg-warning "cannot be initialized with" } */
36 struct S y; /* { dg-warning "cannot be initialized with" } */
37 default:
38 return g2(input) + x.b + y.b;