Mercurial > hg > CbC > CbC_llvm
view llvm/test/Transforms/GlobalOpt/2010-10-19-WeakOdr.ll @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
line wrap: on
line source
; RUN: opt < %s -globalopt -S | FileCheck %s ; PR8389: Globals with weak_odr linkage type must not be modified ; CHECK: weak_odr local_unnamed_addr global i32 0 @SomeVar = weak_odr global i32 0 @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [ { i32, void ()*, i8* } { i32 65535, void ()* @CTOR, i8* null } ] define internal void @CTOR() { store i32 23, i32* @SomeVar ret void }