Debian Codegraph @

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

raw
1 // PR c++/96282
2 // { dg-do compile { target c++11 } }
3
4 struct e { bool v = true; };
5
6 template<int N>
7 struct b { e m[N]; };
8
9 template<int N>
10 struct t : b<N> { constexpr t() : b<N>() {} };
11
12 constexpr t<1> h1;
13 constexpr t<42> h2;