summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vla6.C
blob: 83011f2f0ab8e75084da77b8b4ab830a048285a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/28879
// { dg-options "" }

struct A
{
  int i;
  A(): i(1) {}
};

template<int> void foo()
{
  int x[A().i];
}

void f()
{
  foo<1>();
}