summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/stmt-expr-1.c
blob: fdd62528d46bc9415ce5ec9caa9e5b06b1b3e773 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test diagnostic for GNU extension: statement expressions.  Test
   with no special options.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

int
f (void)
{
  return ({ 1; });
}