PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wunused-var-29.C
blob24eeb958f4a903039a6ea22b6cec876c8c424f3d
1 // PR c++/83690
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wunused-but-set-variable" }
5 void
6 foo ()
8   constexpr bool foo = true;            // { dg-bogus "set but not used" }
9   static_assert (foo, "foo");