1; This test ensures that inlining an "empty" function does not destroy the CFG 2; 3; RUN: opt < %s -passes=inline -S | FileCheck %s 4 5define i32 @func(i32 %i) { 6 ret i32 %i 7} 8 9 10define i32 @main() { 11; CHECK-LABEL: define i32 @main() 12entry: 13 %X = call i32 @func(i32 7) 14; CHECK-NOT: call 15; CHECK-NOT: br 16 17 ret i32 %X 18; CHECK: ret i32 7 19} 20 21