summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array-tparm.C
blob: c17090cc3b49da4da65255d6ccdff39cd820b510 (plain)
1
2
3
4
5
// { dg-options -std=c++0x }

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