Merge from mainline.
[official-gcc.git] / gcc / testsuite / gcc.dg / stmt-expr-2.c
blob37147fd73309fdcc2f69b93dde00f95902ccf3f6
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 "warning: ISO C forbids braced-groups within expressions" } */