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