Debian Codegraph @

gcc/testsuite/g++.dg/lto/odr-8_0.C

raw
1 // { dg-lto-do link }
2 struct a {char c;}; // { dg-lto-message "8: 'struct a' violates the C\\+\\+ One Definition Rule" }
3 int
4 test (struct a *a)
5 {
6 return a->c;
7 }