OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/9335
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
koenig8.C
1
// PR c++/40740
2
3
template<class T>
4
T addsome(T v) {
5
return v+1;
6
}
7
8
int addsome(int v) {
9
return v+2;
10
}
11
12
int main() {
13
int i = 0;
14
if (addsome(i) != 2)
15
return 1;
16
if (addsome<>(i) != 1)
17
return 2;
18
return 0;
19
}
20