xref: /aosp_15_r20/external/llvm/test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: opt -S -partially-inline-libcalls < %s | FileCheck %s
2; RUN: opt -S -passes=partially-inline-libcalls < %s | FileCheck %s
3
4target triple = "x86_64-unknown-linux-gnu"
5
6declare i32 @sqrt()
7
8; CHECK-LABEL: @foo
9define i32 @foo() {
10  ; CHECK: call{{.*}}@sqrt
11  ; CHECK-NOT: call{{.*}}@sqrt
12  %r = call i32 @sqrt()
13  ret i32 %r
14}
15