1 // RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
8 export template<typename T> struct TPL
11 template<typename U> void N (T *, U*);
15 void TPL<T>::M (T *) {}
17 template<typename T> template<typename U> void TPL<T>::N (T *, U*) {}
19 // CHECK-DAG: void @_ZNW3FOO3TPLIS_3OneE1MEPS1_(
20 template void TPL<One>::M (One *);
21 // CHECK-DAG: void @_ZNW3FOO3TPLIS_3OneE1NIS_3TwoEEvPS1_PT_(
22 template void TPL<One>::N<Two> (One *, Two *);
28 export template<typename T> struct TPL
31 template<typename U> void N (T *, U*);
35 void TPL<T>::M (T *) {}
37 template<typename T> template<typename U> void TPL<T>::N (T *, U*) {}
39 // CHECK-DAG: void @_ZN3NMSW3FOO3TPLINS_S0_3OneEE1MEPS2_(
40 template void TPL<One>::M (One *);
41 // CHECK-DAG: void @_ZN3NMSW3FOO3TPLINS_S0_3OneEE1NINS_S0_3TwoEEEvPS2_PT_
42 template void TPL<One>::N<Two> (One *, Two *);