Add a priority queue class, which is a wrapper around std::priority_queue
[oota-llvm.git] / test / Transforms / InstCombine / 2007-11-07-OpaqueAlignCrash.ll
index 61e67ad10c9d25940c2c46fd8b11998d03ce25b6..f3caf079763884329d1445c9878fc2da83cf9767 100644 (file)
@@ -6,12 +6,15 @@ target triple = "i686-pc-linux-gnu"
 
 %opaque_t = type opaque
 
+%op_ts = type {opaque, i32}
+
 @g = external global %opaque_t
+@h = external global %op_ts
 
 define i32 @foo() {
 entry:
         %x = load i8* bitcast (%opaque_t* @g to i8*)
-        %y = load i32* bitcast (%opaque_t* @g to i32*)
+        %y = load i32* bitcast (%op_ts* @h to i32*)
        %z = zext i8 %x to i32
        %r = add i32 %y, %z
         ret i32 %r