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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-19.C
blob
75fd1e3276d8b673b941f4c1cd9da87be0cd14fc
1
// PR c++/55643
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wunused" }
4
5
enum class E { e = 123 };
6
7
int
8
foo ()
9
{
10
E x = E::e;
11
return (double) x;
12
}
13
14
int
15
bar ()
16
{
17
E x = E::e;
18
return (long double) x;
19
}
20
21
int
22
baz ()
23
{
24
E x = E::e;
25
return (float) x;
26
}