aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-06-12 13:24:41 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-06-12 13:24:41 +0000
commitf343b69f47192dc9d1479f8b14aadccd17820d90 (patch)
tree258d9a3a8168c6d70d6545ed0ded231d5c3c967e /test/Transforms
parent45db29c6f12652ad191d22953f415f61b81d9056 (diff)
downloadexternal_llvm-f343b69f47192dc9d1479f8b14aadccd17820d90.zip
external_llvm-f343b69f47192dc9d1479f8b14aadccd17820d90.tar.gz
external_llvm-f343b69f47192dc9d1479f8b14aadccd17820d90.tar.bz2
This test is wrong. If you have two weak functions F and G you can't make
either one call the other since either one can be replaced at link time, and they need to be independent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/MergeFunc/fold-weak.ll11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/Transforms/MergeFunc/fold-weak.ll b/test/Transforms/MergeFunc/fold-weak.ll
deleted file mode 100644
index d98fde0..0000000
--- a/test/Transforms/MergeFunc/fold-weak.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: llvm-as < %s | opt -mergefunc | llvm-dis | grep {alias weak} | count 2
-
-define weak i32 @sum(i32 %x, i32 %y) {
- %sum = add i32 %x, %y
- ret i32 %sum
-}
-
-define weak i32 @add(i32 %x, i32 %y) {
- %sum = add i32 %x, %y
- ret i32 %sum
-}