2018-10-26 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / odr-1_0.C
blob8eabe7b1583032f68cd7d81caf45da75cca4fc11
1 // PR c++/82414
2 // { dg-lto-do link }
3 struct a { // { dg-lto-warning "8: type 'struct a' violates the C\\+\\+ One Definition Rule" }
4   struct b *ptr; // { dg-lto-message "13: the first difference of corresponding definitions is field 'ptr'" }
5 };
6 void test(struct a *) // { dg-lto-warning "6: warning: 'test' violates the C\\+\\+ One Definition Rule" }