summaryrefslogtreecommitdiffstats
path: root/test/CXX/over/over.over/p2.cpp
blob: d03b84a2d15b1d19c48c1b2b9af6a1e9c3420cdd (plain)
1
2
3
4
5
6
7
8
9
10
// 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)'}}
}
OpenPOWER on IntegriCloud