aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/vla12.C
blob: d605e72a482ca252220f899c0fd1648d382e3403 (plain)
1
2
3
4
5
6
7
// PR c++/60250
// { dg-do compile { target c++1y } }

template<typename> void foo()
{
  typedef int T[ ([](){ return 1; }()) ]; // { dg-error "runtime bound" }
}