aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p1.cpp
blob: 088a9e55eb3e6759e549dd7906cbe75d9ec71da4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc -fsyntax-only %s

template<typename T> struct A { };

template<typename T> T make();
template<typename T> T make2(const T&);

void test_make() {
  int& ir0 = make<int&>();
  A<int> a0 = make< A<int> >();
  A<int> a1 = make2< A<int> >(A<int>());
}