xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple %s -o - | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc template<typename T> void a(T);
a(int)4f4a2713aSLionel Sambuc template<> void a(int) {}
5f4a2713aSLionel Sambuc 
6f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_Z1aIiEvT_
7f4a2713aSLionel Sambuc 
8f4a2713aSLionel Sambuc namespace X {
9f4a2713aSLionel Sambuc template<typename T> void b(T);
b(int)10f4a2713aSLionel Sambuc template<> void b(int) {}
11f4a2713aSLionel Sambuc }
12f4a2713aSLionel Sambuc 
13f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_ZN1X1bIiEEvT_
14