Debian Codegraph @

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

raw
1 // PR c++/80829
2 // { dg-do compile { target c++11 } }
3
4 struct A {
5 constexpr A(int a) : _a(a) {}
6 int _a;
7 };
8
9 struct B : public A {
10 constexpr B(int a) : A(a) {}
11 };
12
13 int main() {
14 constexpr A a = B(10);
15 }