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

void g (char *);

char
f (int a)
{
  int len = a * 3;
  char t[len];

  g (t);
  return t[0];
}