llvm.org GIT mirror llvm / release_22 test / Transforms / GlobalDCE / 2003-10-09-PreserveWeakGlobals.ll
release_22

Tree @release_22 (Download .tar.gz)

2003-10-09-PreserveWeakGlobals.ll @release_22raw · history · blame

1
2
3
4
5
6
; Weak variables should be preserved by global DCE!

; RUN: llvm-upgrade < %s | llvm-as | opt -globaldce | llvm-dis | grep @A


%A = weak global int 54