New testcase
authorChris Lattner <sabre@nondot.org>
Mon, 15 Sep 2003 02:07:37 +0000 (02:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Sep 2003 02:07:37 +0000 (02:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8513 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/Inline/2003-09-14-InlineValue.ll [new file with mode: 0644]

diff --git a/test/Transforms/Inline/2003-09-14-InlineValue.ll b/test/Transforms/Inline/2003-09-14-InlineValue.ll
new file mode 100644 (file)
index 0000000..f81b402
--- /dev/null
@@ -0,0 +1,20 @@
+; RUN: llvm-as < %s | opt -inline -disable-output
+
+declare int %External()
+
+implementation
+
+internal int %Callee() {
+  %I = call int %External()
+  %J = add int %I, %I
+  ret int %J
+}
+
+int %Caller() {
+       %V = invoke int %Callee() to label %Ok except label %Bad
+Ok:
+  ret int %V
+Bad:
+  ret int 0
+}
+