Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Douglas Gregor | 1fdd89b | 2009-09-15 20:11:42 +0000 | [diff] [blame] | 2 | |
3 | void f(void*, int); // expected-note{{candidate function}} | ||||
4 | template<typename T> | ||||
5 | void f(T*, long); // expected-note{{candidate function template}} | ||||
6 | |||||
7 | void test_f(int *ip, int i) { | ||||
8 | f(ip, i); // expected-error{{ambiguous}} | ||||
9 | } |