From b3c495f6755f7124ce4435bb9dd753207acdf206 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 Oct 2003 04:54:23 +0000 Subject: [PATCH] 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 --- test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll 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