summaryrefslogtreecommitdiff
path: root/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp
blob: 63909fb7cdbd4d2677e4bab7c91ef2ec8f4347c6 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s

// Core DR 532.
namespace PR8130 {
  struct A { };

  template<class T> struct B {
    template<class R> int &operator*(R&);
  };

  template<class T, class R> float &operator*(T&, R&);
  void test() {
    A a;
    B<A> b;
    int &ir = b * a;
  }
}