aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/Inline/2008-11-04-AlwaysInline.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/Inline/2008-11-04-AlwaysInline.ll b/test/Transforms/Inline/2008-11-04-AlwaysInline.ll
new file mode 100644
index 0000000000..71087c59d5
--- /dev/null
+++ b/test/Transforms/Inline/2008-11-04-AlwaysInline.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | opt -always-inline | llvm-dis | grep {@foo}
+; Ensure that foo is not removed by always inliner
+
+define internal i32 @foo() nounwind {
+ ret i32 0
+}