comparison gcc/testsuite/g++.old-deja/g++.pt/conv3.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 assemble }
2 // Origin: Chris Heath <cheath@math.lsa.umich.edu>
3
4 struct A {
5 template<typename T> explicit A(T t) {}
6 };
7
8 void f(A a) {}
9
10 int main() {f(1);} // { dg-error "" } no conversion from int to A.