PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / pr57175.C
blobd6801a735294e221f1eb129bed120fbf3442401c
1 /* { dg-do compile { target c++11 } } */
3 extern "C" void do_not_remove ();
5 struct A
7   A () { }
8   A (A const&) { do_not_remove (); }
9 };
12 f ()
14   alignas (2 * alignof (A)) A x;
15   return x;
18 /* { dg-final { scan-assembler "do_not_remove" } } */