InstCombine: Don't assume that m_ZExt matches an Instruction
[oota-llvm.git] / test / Transforms / InstCombine / 2007-09-17-AliasConstFold2.ll
index 23ee12ba754f4bfc140f970a053b024cec9d42bf..3793a860e8e9e1b70458982e22382328a5680d6a 100644 (file)
@@ -1,9 +1,11 @@
 ; 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: