xref: /aosp_15_r20/external/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p1.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only %s
2 
3 template<typename T> struct A { };
4 
5 template<typename T> T make();
6 template<typename T> T make2(const T&);
7 
test_make()8 void test_make() {
9   int& ir0 = make<int&>();
10   A<int> a0 = make< A<int> >();
11   A<int> a1 = make2< A<int> >(A<int>());
12 }
13