☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-29.C
☽
☼
gcc/testsuite/g++.dg/warn/Wunused-var-29.C
code
plain
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
}