Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/c99-vla-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* Origin: PR 3467 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ | |
4 /* { dg-require-effective-target alloca } */ | |
5 | |
6 void | |
7 tdef (int n) | |
8 { | |
9 typedef int A[n]; /* { dg-bogus "forbids variable length array" } */ | |
10 A a; | |
11 A *p; | |
12 p = &a; | |
13 } |