aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll')
-rw-r--r--test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll b/test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll
new file mode 100644
index 0000000..34cd672
--- /dev/null
+++ b/test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll
@@ -0,0 +1,13 @@
+; 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
+}