ambiguous-ovl-print.cpp 260 B

123456789
  1. // RUN: %clang_cc1 -fsyntax-only -verify %s
  2. void f(void*, int); // expected-note{{candidate function}}
  3. template<typename T>
  4. void f(T*, long); // expected-note{{candidate function}}
  5. void test_f(int *ip, int i) {
  6. f(ip, i); // expected-error{{ambiguous}}
  7. }