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