Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-27.C
blob: 0ef7153128430d2aeaee1240ae299f0d07fba551 [
file
] [
log
] [
blame
]
// PR c++/82728
// { dg-do compile }
// { dg-options "-Wunused-but-set-variable" }
void
foo
()
{
const
int
i
=
1
;
// { dg-bogus "set but not used" }
switch
(
0
)
{
case
i
:
break
;
}
}