GlobalOpt should maintain externally_initialized when splitting aggregates
[oota-llvm.git] / test / Transforms / GlobalOpt / malloc-promote-3.ll
index d44ee646095095651b6c2630750364354d1db1c5..1e42c3b89a60314970e15340717fa06876e22cbe 100644 (file)
@@ -9,8 +9,8 @@ define void @t() {
   %malloccall = tail call i8* @malloc(i64 mul (i64 100, i64 4)) nobuiltin
   %P = bitcast i8* %malloccall to i32*
   store i32* %P, i32** @G
-  %GV = load i32** @G
-  %GVe = getelementptr i32* %GV, i32 40
+  %GV = load i32*, i32** @G
+  %GVe = getelementptr i32, i32* %GV, i32 40
   store i32 20, i32* %GVe
   ret void
 }