Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr43611.C

raw
1 // { dg-do compile }
2 // { dg-options "-fkeep-inline-functions" }
3
4 template < typename >
5 struct A {
6 void init (int);
7 A ()
8 {
9 this->init (0);
10 }
11 };
12
13 template < typename >
14 struct B : A < int > {
15 A < int > a;
16 B () {}
17 };
18
19 extern template struct A < int >;
20 extern template struct B < int >;
21
22 B < int > b;