aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-12 16:45:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-12 16:45:47 +0000
commit100fbdd06be7590b23c4707a98cd605bdb519498 (patch)
tree085b532cec0aa1e6c81a9237bbeeea6612512aa5 /test/Transforms/GlobalOpt
parentd3f7766f2363862b9c8586d2f78bc413223240d3 (diff)
downloadexternal_llvm-100fbdd06be7590b23c4707a98cd605bdb519498.zip
external_llvm-100fbdd06be7590b23c4707a98cd605bdb519498.tar.gz
external_llvm-100fbdd06be7590b23c4707a98cd605bdb519498.tar.bz2
Always remove an alias when we rename the target.
Should fix the dragonegg build bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GlobalOpt')
-rw-r--r--test/Transforms/GlobalOpt/alias-resolve.ll13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/Transforms/GlobalOpt/alias-resolve.ll b/test/Transforms/GlobalOpt/alias-resolve.ll
index a42dd28..32f4bf8 100644
--- a/test/Transforms/GlobalOpt/alias-resolve.ll
+++ b/test/Transforms/GlobalOpt/alias-resolve.ll
@@ -1,4 +1,7 @@
-; RUN: opt < %s -globalopt -S | FileCheck %s
+; We use a temporary file so that the test fails when opt crashes.
+
+; RUN: opt < %s -globalopt -S > %t
+; RUN: FileCheck %s < %t
@foo1 = alias void ()* @foo2
; CHECK: @foo1 = alias void ()* @foo2
@@ -25,3 +28,11 @@ entry:
ret void
}
+
+@foo3 = alias void ()* @bar3
+; CHECK-NOT: bar3
+
+define internal void @bar3() {
+ ret void
+}
+;CHECK: define void @foo3