2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / odr-1_1.C
blobef2f55a69aaa1e4cb976325a9d81783e63961b53
1 namespace {
2   struct b;
3  }
4 struct a {
5   struct b *ptr;
6 };
7 void test(struct a *); // { dg-lto-warning "6: 'test' violates the C\\+\\+ One Definition Rule" }
8 int
9 main(void)
11   test (0);