repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-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
}