diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-array-tparm.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-array-tparm.C | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-array-tparm.C b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-array-tparm.C new file mode 100644 index 000000000..02fba9554 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-array-tparm.C @@ -0,0 +1,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; |