brintos

brintos / llvm-project-archived public Read only

0
0
Text · 589 B · 5c301dd Raw
28 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S -passes=inline < %s | FileCheck %s3 4define void @test(ptr %p1, ptr %p2) {5; CHECK-LABEL: @test(6; CHECK-NEXT:    ret void7;8  ret void9}10 11define void @test1() {12; CHECK-LABEL: @test1(13; CHECK-NEXT:    [[CALL_I:%.*]] = call i32 @test(ptr null)14; CHECK-NEXT:    ret void15;16  call void @test2(ptr @test)17  ret void18}19 20define void @test2(ptr %i) {21; CHECK-LABEL: @test2(22; CHECK-NEXT:    [[CALL:%.*]] = call i32 [[I:%.*]](ptr null)23; CHECK-NEXT:    ret void24;25  %call = call i32 %i(ptr null)26  ret void27}28