GlobalOpt should maintain externally_initialized when splitting aggregates
[oota-llvm.git] / test / Transforms / GlobalOpt / malloc-promote-3.ll
index b4e7986df64a046f251536422ea1eca766375165..1e42c3b89a60314970e15340717fa06876e22cbe 100644 (file)
@@ -9,7 +9,7 @@ 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
+  %GV = load i32*, i32** @G
   %GVe = getelementptr i32, i32* %GV, i32 40
   store i32 20, i32* %GVe
   ret void