hanchenye-llvm-project/clang/test/SemaTemplate/overload-candidates.cpp

9 lines
312 B
C++
Raw Normal View History

// 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'}}
}