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 00000000000..71087c59d54 --- /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 +}