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
* Mainline merge as of 2006-02-16 (@111136).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
switch2.C
blob
2590273c5d9c00e58b6832ba436bb7b6228fe2af
1
// { dg-do compile }
2
// { dg-options "-O2" }
3
4
extern int foo (int);
5
6
void
7
bar (void)
8
{
9
char tmp = foo (0);
10
switch (tmp)
11
{
12
case 1: foo (1); break;
13
case 2: foo (2); break;
14
case 3: foo (3); break;
15
case 4: foo (4); break;
16
case 5: foo (5); break;
17
case 6: foo (6); break;
18
case 7: foo (7); break;
19
case 255: foo (8); break;
20
default: break;
21
}
22
}
23