☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array20.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-array20.C
code
plain
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
}