Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-array20.C

raw
1 // PR c++/71504
2 // { dg-do compile { target c++11 } }
3
4 enum E { e };
5
6 constexpr bool arr[1][1] = {{true}};
7
8 template<E x, E y>
9 void check() {
10 static_assert(arr[x][y], "");
11 }
12
13 int main() {
14 check<e, e>();
15 }