summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/conv3.C
blob: 78cf5ce0f10a23d58ec4a786cae8f4df68461086 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Origin: Chris Heath <cheath@math.lsa.umich.edu>

struct A {
  template<typename T> explicit A(T t) {}
};

void f(A a) {}

int main() {f(1);} // { dg-error "" } no conversion from int to A.