llvm-for-llvmta/tools/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p1.cpp
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

13 lines
266 B
C++

// RUN: %clang_cc1 -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>());
}