2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / stmt-expr-2.c
blob524e8ac87df4ff9e55ffa4577cc595528496017b
1 /* Test diagnostic for GNU extension: statement expressions. Test
2 with -pedantic. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-std=gnu99 -pedantic" } */
7 int
8 f (void)
10 return ({ 1; }); /* { dg-warning "ISO C forbids braced-groups within expressions" } */