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 tdef(int n)7tdef (int n) 8 { 9 typedef int A[n]; /* { dg-bogus "forbids variable length array" } */ 10 A a; 11 A *p; 12 p = &a; 13 } 14