Debian Codegraph @

gcc/testsuite/g++.dg/lto/20081120-2_0.C

raw
1 // { dg-lto-do link }
2 // { dg-lto-options {{-flto -r -nostdlib}} }
3 /* { dg-extra-ld-options "-flinker-output=nolto-rel" } */
4 template < typename > struct Foo
5 {
6 inline void rdstate() {
7 }
8 };
9
10 extern template struct Foo<int>;
11
12 struct Bar:virtual public Foo<int>
13 {
14 };