blob: 524e8ac87df4ff9e55ffa4577cc595528496017b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* 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 "ISO C forbids braced-groups within expressions" } */
}
|