p2.cpp revision bc0a2226c7fcd18b29b6846049e2cfcb872d3593
1// RUN: clang-cc -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