[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr83121_1.C
blob2aef1b50957026ea7abd93ccf4a654c5c513b8b7
1 struct Environment {
2   struct AsyncHooks { // { dg-lto-warning "10: type 'struct AsyncHooks' violates the C\\+\\+ One Definition Rule" }
3     int providers_[1]; // { dg-lto-message "the first difference of corresponding definitions is field 'providers_'" }
4   };
5   AsyncHooks async_hooks_;
6 };
7 void fn1() { Environment a; }
8 int main ()