Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wunused-var-29.C

raw
1 // PR c++/83690
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wunused-but-set-variable" }
4
5 void
6 foo ()
7 {
8 constexpr bool foo = true; // { dg-bogus "set but not used" }
9 static_assert (foo, "foo");
10 }