☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array14.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-array14.C
code
plain
raw
1
// PR c++/66921
2
// { dg-do compile { target c++11 } }
3
4
template<typename T>
5
struct Holder {
6
constexpr static const int array[] = { 1, 2, 3 };
7
enum {F = array[0]};
8
};
9
class HI: public Holder<int> {};