]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/lto/odr-1_1.C
ipa-devirt.c (odr_subtypes_equivalent_p): Fix recursion.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / lto / odr-1_1.C
CommitLineData
09d3f04e
JH
1namespace {
2 struct b;
3 }
4struct a {
5 struct b *ptr;
6};
abb967da 7void test(struct a *); // { dg-lto-warning "6: 'test' violates the C\\+\\+ One Definition Rule" }
09d3f04e
JH
8int
9main(void)
10{
11 test (0);
12}