summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/function-template-explicit-specialization.cpp')
-rw-r--r--clang/test/CodeGenCXX/function-template-explicit-specialization.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp b/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp
new file mode 100644
index 0000000..21f0127
--- /dev/null
+++ b/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+
+template<typename T> void a(T);
+template<> void a(int) {}
+
+// CHECK: define void @_Z1aIiEvT_
+
+namespace X {
+template<typename T> void b(T);
+template<> void b(int) {}
+}
+
+// CHECK: define void @_ZN1X1bIiEEvT_