Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/inh-ctor37.C

raw
1 // { dg-do compile { target c++11 } }
2 // PR 78488, seg fault with inherited ctor
3
4 struct Foo { Foo() {} };
5
6 struct Bar : Foo {
7 using Foo::Foo;
8 Bar(void*);
9 };
10
11 int main() {
12 Bar f;
13 }