llvm-6502/test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll

14 lines
264 B
LLVM
Raw Normal View History

; RUN: opt -S -partially-inline-libcalls < %s | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
declare i32 @sqrt()
; CHECK-LABEL: @foo
define i32 @foo() {
; CHECK: call{{.*}}@sqrt
; CHECK-NOT: call{{.*}}@sqrt
%r = call i32 @sqrt()
ret i32 %r
}