PR c++/79143
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / inh-ctor37.C
blobd501c5b97c1b68315ae308c7b539619421625499
1 // { dg-do compile { target c++11 } }
2 // PR 78488, seg fault with inherited ctor
4 struct Foo { Foo() {} };
6 struct Bar : Foo {
7   using Foo::Foo;
8   Bar(void*);
9 };
11 int main() {
12  Bar f;