aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/Wunused-var-14.c
blob: 389febae8c695592f7c9783b118eaee9e49e5af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/50179 */
/* { dg-options "-Wunused" } */
/* { dg-do compile } */

void bar (int, ...);

char *
foo (void)
{
  bar (1, (__extension__ ({ static char b[2]; b[0] = 1; b; })));
  bar (1, ({ static char c[2]; c[0] = 1; c; }));
  return ({ static char d[2]; d[0] = 1; d; });
}