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