repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-27.C
blob
0ef7153128430d2aeaee1240ae299f0d07fba551
1
// PR c++/82728
2
// { dg-do compile }
3
// { dg-options "-Wunused-but-set-variable" }
4
5
void
6
foo ()
7
{
8
const int i = 1; // { dg-bogus "set but not used" }
9
switch (0)
10
{
11
case i:
12
break;
13
}
14
}