Change the .ll syntax for comdats and add a syntactic sugar.
[oota-llvm.git] / test / Transforms / GlobalOpt / zeroinitializer-gep-load.ll
1 ; RUN: opt < %s -S -globalopt | FileCheck %s
2
3 @zero = internal global [10 x i32] zeroinitializer
4
5 define i32 @test1(i64 %idx) nounwind {
6   %arrayidx = getelementptr inbounds [10 x i32]* @zero, i64 0, i64 %idx
7   %l = load i32* %arrayidx
8   ret i32 %l
9 ; CHECK-LABEL: @test1(
10 ; CHECK: ret i32 0
11 }