summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array26.C
blob: 274f55a88bfdf16c6e512e5314a54a5b4789b174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/96282
// { dg-do compile { target c++11 } }

struct e { bool v = true; };

template<int N>
struct b { e m[N]; };

template<int N>
struct t : b<N> { constexpr t() : b<N>() {} };

constexpr t<1> h1;
constexpr t<42> h2;