summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wunused-var-6.c
blob: 12a7dddc00db82c54f9b57669b3b5d8958fd104f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c/43981 */
/* { dg-do compile } */
/* { dg-options "-Wunused" } */
/* { dg-require-effective-target alloca } */

void g (char *);

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

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