Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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"
);
}