☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-base2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-base2.C
code
plain
raw
1
// PR c++/46293
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
};
7
8
struct C
9
{
10
int i;
11
constexpr C(int i): i(i) {}
12
};
13
14
struct B: A, C
15
{
16
constexpr B(): A(), C(42) { }
17
};
18
19
constexpr B b{};