You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
378 B
11 lines
378 B
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
template <typename T>
|
|
T f0(T, T); // expected-note{{deduced conflicting types for parameter 'T' ('int' vs. 'float')}}
|
|
|
|
void test_f0() {
|
|
int (*f0a)(int, int) = f0;
|
|
int (*f0b)(int, int) = &f0;
|
|
int (*f0c)(int, float) = f0; // expected-error{{address of overloaded function 'f0' does not match required type 'int (int, float)'}}
|
|
}
|