p2.cpp revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3template<typename T> T f0(T, T);
4
5void test_f0() {
6  int (*f0a)(int, int) = f0;
7  int (*f0b)(int, int) = &f0;
8  int (*f0c)(int, float) = f0; // expected-error{{incompatible type}}
9  // FIXME: poor error message above!
10}
11