]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / CXX / temp / temp.decls / temp.fct / temp.func.order / p3.cpp
CommitLineData
223e47cc
LB
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3namespace DeduceVsMember {
4 template<typename T>
5 struct X {
6 template<typename U>
7 int &operator==(const U& other) const;
8 };
9
10 template<typename T, typename U>
11 float &operator==(const T&, const X<U>&);
12
13 void test(X<int> xi, X<float> xf) {
14 float& ir = (xi == xf);
15 }
16}
17
18namespace OrderWithStaticMember {
19 struct A {
20 template<class T> int g(T**, int=0) { return 0; }
21 template<class T> static int g(T*) { return 1; }
22 };
23 void f() {
24 A a;
25 int **p;
26 a.g(p);
27 }
28}