9 lines
312 B
C++
9 lines
312 B
C++
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||
|
|
||
|
template<typename T>
|
||
|
const T& min(const T&, const T&); // expected-note{{candidate template ignored: deduced conflicting types for parameter 'T' ('int' vs. 'long')}}
|
||
|
|
||
|
void test_min() {
|
||
|
(void)min(1, 2l); // expected-error{{no matching function for call to 'min'}}
|
||
|
}
|