c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / g++.dg / template / vla2.C
blobdcd384b265d940d93ad9319fe8f1e768d1c5b839
1 // PR c++/28879
2 // { dg-do compile }
3 // { dg-options "" }
4 // { dg-require-effective-target alloca }
6 struct A
8   static int i;
9   int j;
12 template<int> void foo ()
14   int x[A::i];
15 //int y[A().j];
18 void bar ()
20   foo<6> ();