comparison gcc/testsuite/g++.old-deja/g++.pt/explicit28.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 // { dg-do link }
2 // GROUPS passed templates
3 template <class T>
4 int foo(T t) { return 1; }
5
6 template <>
7 int foo(int i) { return 0; }
8
9 int main()
10 {
11 return (*((int (*)(int)) &foo<int>))(3);
12 }