Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-29.C
blob: 24eeb958f4a903039a6ea22b6cec876c8c424f3d [
file
] [
log
] [
blame
]
// PR c++/83690
// { dg-do compile { target c++11 } }
// { dg-options "-Wunused-but-set-variable" }
void
foo
()
{
constexpr
bool
foo
=
true
;
// { dg-bogus "set but not used" }
static_assert
(
foo
,
"foo"
);
}