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