]> git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / CXX / temp / temp.decls / temp.fct / temp.func.order / p5.cpp
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 template<class T> int &f(T);
3 template<class T> float &f(T*, int=1);
4
5 template<class T> int &g(T);
6 template<class T> float &g(T*, ...);
7
8 int main() {
9 int* ip;
10 float &fr1 = f(ip);
11 float &fr2 = g(ip);
12 }