From: Chris Lattner Date: Fri, 10 Oct 2003 04:54:23 +0000 (+0000) Subject: new testcase. globaldce should not delete the global X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b3c495f6755f7124ce4435bb9dd753207acdf206;p=oota-llvm.git new testcase. globaldce should not delete the global git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8999 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll b/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll new file mode 100644 index 00000000000..43ca809abe0 --- /dev/null +++ b/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll @@ -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