2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-07-10 01:44:05 +08:00
|
|
|
|
2013-07-20 07:00:19 +08:00
|
|
|
template <typename T>
|
2013-08-14 08:00:44 +08:00
|
|
|
T f0(T, T); // expected-note{{deduced conflicting types for parameter 'T' ('int' vs. 'float')}}
|
2009-07-10 01:44:05 +08:00
|
|
|
|
|
|
|
void test_f0() {
|
|
|
|
int (*f0a)(int, int) = f0;
|
|
|
|
int (*f0b)(int, int) = &f0;
|
2010-11-08 11:40:48 +08:00
|
|
|
int (*f0c)(int, float) = f0; // expected-error{{address of overloaded function 'f0' does not match required type 'int (int, float)'}}
|
2009-07-28 05:00:51 +08:00
|
|
|
}
|