Douglas Gregor | 0d5dc8e | 2009-07-09 17:44:05 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
3 | template<typename T> T f0(T, T); | ||||
4 | |||||
5 | void 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 Anderson | bc0a222 | 2009-07-27 21:00:51 +0000 | [diff] [blame] | 10 | } |