Debian Codegraph @

gcc/testsuite/g++.dg/lto/odr-1_1.C

raw
1 namespace {
2 struct b; // { dg-lto-note "type 'struct b' defined in anonymous namespace cannot match across the translation unit boundary" }
3 }
4 enum vals {aa,bb,cc}; // { dg-lto-note "an enum with different value name is defined in another translation unit" }
5 // { dg-lto-note "mismatching definition" "" { target *-*-* } .-1 }
6 struct a { // { dg-lto-note "a different type is defined in another translation unit" }
7 struct b *ptr; // { dg-lto-note "a field of same name but different type is defined in another translation unit" }
8 enum vals vals;
9 } a;
10 void test(struct a *);
11 int
12 main(void)
13 {
14 test (&a);
15 if (a.vals==aa)
16 return 1;
17 }