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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
enum8.C
blob
0a3220f7faaaadef314cf4b560fc7267859e48da
1
// Bug: the switch fails on the Alpha because folding ef - 1 fails.
2
3
enum foo { one=1, thirty=30 };
4
5
int f (enum foo ef)
6
{
7
switch (ef)
8
{
9
case one:
10
case thirty:
11
return 0;
12
default:
13
return 1;
14
}
15
}
16
17
int main ()
18
{
19
return f (one);
20
}