comparison gcc/testsuite/gcc.c-torture/compile/pr83547.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
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 }