summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array-tparm.C
blob: 02fba95545defea64286ef1168ff7b0b44c87a3f (plain)
1
2
3
4
5
// { dg-do compile { target c++11 } }

template <const int I[2]> struct A { int ir[I[0]]; };
extern constexpr int ar[2] = { 1, 2 };
A<ar> a;