summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp
blob: 5f2dbb6018ce13d16432827351d249dd849409bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
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);
}
OpenPOWER on IntegriCloud