comparison gcc/testsuite/g++.dg/template/koenig8.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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