]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/function-template-explicit-specialization.cpp
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / function-template-explicit-specialization.cpp
1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3 template<typename T> void a(T);
4 template<> void a(int) {}
5
6 // CHECK-LABEL: define void @_Z1aIiEvT_
7
8 namespace X {
9 template<typename T> void b(T);
10 template<> void b(int) {}
11 }
12
13 // CHECK-LABEL: define void @_ZN1X1bIiEEvT_