diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-temp2.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-temp2.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-temp2.C new file mode 100644 index 0000000..28ffd2c --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-temp2.C @@ -0,0 +1,6 @@ +// DR 2126 +// { dg-do compile { target c++11 } } + +typedef const int CI[3]; +constexpr CI &ci = CI{11, 22, 33}; +static_assert(ci[1] == 22, ""); |