; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -passes='deadargelim' -S %s | FileCheck %s
define dso_local void @_ZdlPv(ptr %p) nobuiltin {
; CHECK-LABEL: @_ZdlPv(
; CHECK-NEXT: entry:
; CHECK-NEXT: ret void
;
entry:
ret void
}
define dso_local i32 @test_fn(ptr %ptr) {
; CHECK-LABEL: @test_fn(
; CHECK-NEXT: entry:
; CHECK-NEXT: call void @_ZdlPv(ptr [[PTR:%.*]]) #[[ATTR1:[0-9]+]]
; CHECK-NEXT: ret i32 1
;
entry:
call void @_ZdlPv(ptr %ptr) builtin
ret i32 1
}