blob: 37147fd73309fdcc2f69b93dde00f95902ccf3f6 [file] [log] [blame]
/* Test diagnostic for GNU extension: statement expressions. Test
with -pedantic. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -pedantic" } */
int
f (void)
{
return ({ 1; }); /* { dg-warning "warning: ISO C forbids braced-groups within expressions" } */
}