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