comparison gcc/testsuite/c-c++-common/Wunused-var-6.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR c/43981 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wunused" } */
4 /* { dg-require-effective-target alloca } */
5
6 void g (char *);
7
8 char
9 f (int a)
10 {
11 int len = a * 3;
12 char t[len];
13
14 g (t);
15 return t[0];
16 }