Add -mcpu=power11 support.
[official-gcc.git] / gcc / testsuite / g++.dg / lto / odr-1_1.C
bloba57bb3898aaf2009feeae0ae84ef78d8089c2b9e
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)
14   test (&a);
15   if (a.vals==aa)
16     return 1;