aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-initlist7.C
blob: 6fea82f515c6bd3df070f564f31610fafc938e8f (plain)
1
2
3
4
5
6
7
// PR c++/60186
// { dg-require-effective-target c++11 }

template<typename> void foo(int i)
{
  constexpr int a[] = { i };	// { dg-error "" }
}