aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-20 20:15:01 +0000
committerChris Lattner <sabre@nondot.org>2004-04-20 20:15:01 +0000
commit7be1e0b478bd8430f5a676985f86c22f14c58c89 (patch)
treec0d9a5b3ae4ce8693ca21c3ee0d812596603ee25 /test
parent3f083d5de6bb08cc0abfce39ae9123b72dd28f32 (diff)
downloadexternal_llvm-7be1e0b478bd8430f5a676985f86c22f14c58c89.zip
external_llvm-7be1e0b478bd8430f5a676985f86c22f14c58c89.tar.gz
external_llvm-7be1e0b478bd8430f5a676985f86c22f14c58c89.tar.bz2
New testcase, distilled from PR324
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/Inline/2004-04-20-InlineLinkOnce.llx12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/Inline/2004-04-20-InlineLinkOnce.llx b/test/Transforms/Inline/2004-04-20-InlineLinkOnce.llx
new file mode 100644
index 0000000..bfd3e1d
--- /dev/null
+++ b/test/Transforms/Inline/2004-04-20-InlineLinkOnce.llx
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -inline -prune-eh -disable-output
+
+implementation
+
+linkonce void %caller() {
+ call void %callee()
+ ret void
+}
+
+linkonce void %callee() {
+ ret void
+}