Douglas Gregor | a933319 | 2010-05-08 17:41:32 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | template<typename T> | ||||
4 | const T& min(const T&, const T&); // expected-note{{candidate template ignored: deduced conflicting types for parameter 'T' ('int' vs. 'long')}} | ||||
5 | |||||
6 | void test_min() { | ||||
7 | (void)min(1, 2l); // expected-error{{no matching function for call to 'min'}} | ||||
8 | } |