Clang Project

clang_source_code/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3template<class T> int &f(T); 
4template<class T> float &f(T*, int=1); 
5
6template<class T> int &g(T); 
7template<class T> float &g(T*, ...);
8
9int main() { 
10  int* ip; 
11  float &fr1 = f(ip); 
12  float &fr2 = g(ip);
13}
14