llvm-project/llvm/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlob...

7 lines
152 B
LLVM

; 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