1; RUN: opt < %s -globalopt -S | FileCheck %s 2 3; PR8389: Globals with weak_odr linkage type must not be modified 4 5; CHECK: weak_odr global i32 0 6 7@SomeVar = weak_odr global i32 0 8 9@llvm.global_ctors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @CTOR } ] 10 11define internal void @CTOR() { 12 store i32 23, i32* @SomeVar 13 ret void 14} 15 16 17