1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=inline < %s | FileCheck %s
4 define void @test(ptr %p1, ptr %p2) {
11 define void @test1() {
12 ; CHECK-LABEL: @test1(
13 ; CHECK-NEXT: [[CALL_I:%.*]] = call i32 @test(ptr null)
14 ; CHECK-NEXT: ret void
16 call void @test2(ptr @test)
20 define void @test2(ptr %i) {
21 ; CHECK-LABEL: @test2(
22 ; CHECK-NEXT: [[CALL:%.*]] = call i32 [[I:%.*]](ptr null)
23 ; CHECK-NEXT: ret void
25 %call = call i32 %i(ptr null)