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
PR c++/84488
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-30.C
blob
e95e120e656147dd2432f57ad6188cbd596b7ed8
1
// PR c++/84488
2
// { dg-do compile }
3
// { dg-options "-Wunused-but-set-variable" }
4
5
int
6
foo ()
7
{
8
enum E { A, B, C, D };
9
double r = 1.0; // { dg-bogus "set but not used" }
10
return static_cast<E>(r);
11
}