Debian Codegraph @

gcc/testsuite/g++.dg/lto/odr-7_0.C

raw
1 // { dg-lto-do link }
2
3 struct bar // { dg-lto-message "type name 'bar' should match type name 'foobar<float>'" }
4 {
5 int xxx;
6 };
7
8 struct foo // { dg-lto-warning "8: 'struct foo' violates the C\\+\\+ One Definition Rule" }
9 {
10 bar a;
11 };
12
13 foo myfoo2;
14
15 int
16 main()
17 {
18 }