summaryrefslogtreecommitdiff
path: root/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp
blob: 4d34968d32aa942982d608dcd11b8cfb6b770588 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify %s
template<class T> int &f(T); 
template<class T> float &f(T*, int=1); 

template<class T> int &g(T); 
template<class T> float &g(T*, ...);

int main() { 
  int* ip; 
  float &fr1 = f(ip); 
  float &fr2 = g(ip);
}