view 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
line wrap: on
line source

// { 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.