1 ; RUN: opt < %s -passes=globalopt -S | FileCheck %s
3 ; PR8389: Globals with weak_odr linkage type must not be modified
5 ; CHECK: weak_odr local_unnamed_addr global i32 0
7 @SomeVar = weak_odr global i32 0
9 @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [ { i32, ptr, ptr } { i32 65535, ptr @CTOR, ptr null } ]
11 define internal void @CTOR() {
12 store i32 23, ptr @SomeVar