aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/DeadArgElim/deadexternal.ll
blob: 84341781da26d42598976f716e5a2f883e5acd83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt -deadargelim -S %s | FileCheck %s

define void @test(i32) {
  ret void
}

define void @foo() {
  call void @test(i32 0)
  ret void
; CHECK: @foo
; CHECK: i32 undef
}