Debian Codegraph @

gcc/testsuite/g++.dg/lto/odr-5_1.C

raw
1 struct wiimote_t;
2 class a {
3 wiimote_t *b;
4 a();
5 };
6 struct wiimote_t { // { dg-lto-message "a different type is defined in another translation unit" }
7 int unid; // { dg-lto-message "a field of same name but different type is defined in another translation unit" }
8 };
9 a::a() { b = __null; }