p9.cpp revision 1a6e03457ebafd6ac523cdcf5d6b6f411ea08772
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3template <int> int f(int); // expected-note 2{{candidate}} 4template <signed char> int f(int); // expected-note 2{{candidate}} 5int i1 = f<1>(0); // expected-error{{ambiguous}} 6int i2 = f<1000>(0); // expected-error{{ambiguous}} 7