blob: 9ab0260618935689b63af824b6744ca479f6b78b [file] [log] [blame]
Douglas Gregor0d5dc8e2009-07-09 17:44:05 +00001// 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!
Owen Andersonbc0a2222009-07-27 21:00:51 +000010}