gcc/testsuite/g++.dg/lto/pr101396_0.C
raw| 1 | /* { dg-lto-do link } */ |
| 2 | |
| 3 | enum A : __UINT32_TYPE__ { // { dg-lto-warning "6: type 'A' violates the C\\+\\+ One Definition Rule" } |
| 4 | a, // { dg-lto-note "3: name 'a' is defined as 32-bit while another translation unit defines it as 64-bit" } |
| 5 | b, |
| 6 | c |
| 7 | }; |
| 8 | |
| 9 | int main() |
| 10 | { |
| 11 | return (int) A::a; |
| 12 | } |