xref: /llvm-project/clang/test/CXX/over/over.over/p2.cpp (revision 0d905476f8316eeeac5dcfb9d415d3e0256aae58)
18fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -fsyntax-only -verify %s
2b05ce0f3SDouglas Gregor 
398b20f12SLarisse Voufo template <typename T>
4*0d905476SRichard Smith T f0(T, T); // expected-note{{deduced conflicting types for parameter 'T' ('int' vs. 'float')}}
5b05ce0f3SDouglas Gregor 
test_f0()6b05ce0f3SDouglas Gregor void test_f0() {
7b05ce0f3SDouglas Gregor   int (*f0a)(int, int) = f0;
8b05ce0f3SDouglas Gregor   int (*f0b)(int, int) = &f0;
9e81f58e1SDouglas Gregor   int (*f0c)(int, float) = f0; // expected-error{{address of overloaded function 'f0' does not match required type 'int (int, float)'}}
10b05ce0f3SDouglas Gregor }
11