1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3
4template<typename T> int &f0(T*, int);
5float &f0(void*, int);
6
7void test_f0(int* ip, void *vp) {
8  // One argument is better...
9  int &ir = f0(ip, 0);
10
11  // Prefer non-templates to templates
12  float &fr = f0(vp, 0);
13}
14
15// Partial ordering of function template specializations will be tested
16// elsewhere
17// FIXME: Initialization by user-defined conversion is tested elsewhere
18