aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/static-member-variable-explicit-specialization.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-04 23:50:01 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-04 23:50:01 +0000
commit1b3171dd6c7c319655f79de80ed8fed03f758e51 (patch)
tree92d63d56986f0232ce45c57f474df3e5c2f0caff /test/CodeGenCXX/static-member-variable-explicit-specialization.cpp
parent6a1e0eb557d47e85185e09bdf8721f53f4bf9c9c (diff)
Don't emit explicit specializations of static member variable declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/static-member-variable-explicit-specialization.cpp')
-rw-r--r--test/CodeGenCXX/static-member-variable-explicit-specialization.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/static-member-variable-explicit-specialization.cpp b/test/CodeGenCXX/static-member-variable-explicit-specialization.cpp
new file mode 100644
index 0000000000..d439cbd500
--- /dev/null
+++ b/test/CodeGenCXX/static-member-variable-explicit-specialization.cpp
@@ -0,0 +1,11 @@
+// RUN: clang-cc %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
+// CHECK: ; ModuleID
+template<typename> struct A { static int a; };
+
+// CHECK-NOT: @_ZN1AIcE1aE
+template<> int A<char>::a;
+
+// CHECK: @_ZN1AIbE1aE = global i32 10
+template<> int A<bool>::a = 10;
+
+