InstCombine: Don't assume that m_ZExt matches an Instruction
[oota-llvm.git] / test / Transforms / InstCombine / 2007-09-17-AliasConstFold2.ll
index 300edd5e56eef353a2e81c2647abebdc83c75ce1..3793a860e8e9e1b70458982e22382328a5680d6a 100644 (file)
@@ -1,9 +1,11 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep icmp
+; RUN: opt < %s -instcombine -S | grep icmp
 ; PR1678
 
-@A = alias weak void ()* @B            ; <void ()*> [#uses=1]
+@A = weak alias void ()* @B            ; <void ()*> [#uses=1]
 
-declare extern_weak void @B()
+define weak void @B() {
+       ret void
+}
 
 define i32 @active() {
 entry: