3 /* { dg-options "-O2 -Wunused-variable" } */
5 int foo3b(void) // should not return 0
8 return sizeof *({ n
= 10; int x
[n
]; &x
; });
11 int foo4(void) // should not ICE
15 char (*x
)[n
][n
] = __builtin_malloc(n
* n
);
21 int foo5(void) // should return 1, returns 0
26 char (*x
)[n
][n
] = __builtin_malloc(n
* n
);
33 int foo5c(void) // should return 400
38 char (*x
)[n
][n
] = __builtin_malloc(n
* n
);
45 int foo5b(void) // should return 1, returns 0
47 int n
= 0; /* { dg-warning "unused variable" } */
50 char (*x
)[n
][n
] = __builtin_malloc(n
* n
);
57 int foo5a(void) // should return 1, returns 0
61 char (*x
)[n
][n
] = __builtin_malloc(n
* n
);
73 if (sizeof(int[10]) != foo3b())
85 if (1 != foo5b()) // -O0