mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
3d9542cb7b
Un-XFAIL this since it now passes with fix to llvm-upgrade. llvm-svn: 36104
17 lines
488 B
LLVM
17 lines
488 B
LLVM
; Make sure that functions are removed successfully if they are referred to by
|
|
; a global that is dead. Make sure any globals they refer to die as well.
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -globaldce | llvm-dis | not grep foo
|
|
|
|
%b = internal global int ()* %foo ;; Unused, kills %foo
|
|
|
|
%foo = internal global int 7 ;; Should die when function %foo is killed
|
|
|
|
implementation
|
|
|
|
internal int %foo() { ;; dies when %b dies.
|
|
%ret = load int* %foo
|
|
ret int %ret
|
|
}
|
|
|