p5.cpp revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2template<class T> int &f(T);
3template<class T> float &f(T*, int=1);
4
5template<class T> int &g(T);
6template<class T> float &g(T*, ...);
7
8int main() {
9  int* ip;
10  float &fr1 = f(ip);
11  float &fr2 = g(ip);
12}
13