PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr81675.C
blob24a7a3b067747ec888b2ffae0b949c9eeca12086
1 // PR c++/81675
2 // { dg-do compile }
3 // { dg-options "-Wall" }
5 struct S
7   ~S () __attribute__((noreturn));
8   int a;
9 };
11 int
12 foo ()
14   false ? 5 : S ().a;