new testcase. globaldce should not delete the global
authorChris Lattner <sabre@nondot.org>
Fri, 10 Oct 2003 04:54:23 +0000 (04:54 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Oct 2003 04:54:23 +0000 (04:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8999 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll [new file with mode: 0644]

diff --git a/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll b/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll
new file mode 100644 (file)
index 0000000..43ca809
--- /dev/null
@@ -0,0 +1,6 @@
+; Weak variables should be preserved by global DCE!
+
+; RUN: llvm-as < %s | opt -globaldce | llvm-dis | grep %A
+
+
+%A = weak global int 54