gcc/testsuite/gcc.c-torture/compile/pr83547.c
raw| 1 | /* PR debug/83547 */ |
| 2 | |
| 3 | void |
| 4 | foo (void) |
| 5 | { |
| 6 | if (({ 0; })) |
| 7 | ; |
| 8 | if (({ 0; 0; })) |
| 9 | ; |
| 10 | if (({ })) /* { dg-error "void value not ignored as it ought to be" } */ |
| 11 | ; |
| 12 | if (({ 0; { 0; } })) /* { dg-error "void value not ignored as it ought to be" } */ |
| 13 | ; |
| 14 | if (({ 0; {} })) /* { dg-error "void value not ignored as it ought to be" } */ |
| 15 | ; |
| 16 | } |