repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
opt
/
switch1.C
blob
c21630d752b607926122c6ae27070dd46c79aa54
1
// { dg-options "-O1" }
2
3
template <typename T>
4
int f(T t) {
5
switch (t) {
6
case 1:
7
return 5;
8
case 2:
9
return 6;
10
case 3:
11
return -4;
12
case 4:
13
return 8;
14
case 5:
15
return 12;
16
case 6:
17
return 13;
18
default:
19
return -27;
20
}
21
}
22
23
template int f(int);