llvm-mirror/test/Transforms/DeadArgElim/linkage.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

22 lines
422 B
LLVM

; RUN: opt < %s -deadargelim -S | FileCheck %s
; rdar://11546243
%struct.A = type { i8 }
define available_externally void @_Z17externallyDefinedP1A(%struct.A* %a) {
entry:
call void @_Z3foov()
ret void
}
declare void @_Z3foov()
define void @_Z4testP1A(%struct.A* %a) {
; CHECK: @_Z4testP1A
; CHECK: @_Z17externallyDefinedP1A(%struct.A* %a)
entry:
call void @_Z17externallyDefinedP1A(%struct.A* %a)
ret void
}