1 ; RUN: opt -data-layout=A5 -globalopt %s -S -o - | FileCheck %s
4 @g = internal addrspace(1) global i32* zeroinitializer
6 ; CHECK: @llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer
7 @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }]
8 [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
11 define internal void @ctor() {
12 %addr = alloca i32, align 8, addrspace(5)
13 %tmp = addrspacecast i32 addrspace(5)* %addr to i32*
14 store i32* %tmp, i32* addrspace(1)* @g