xref: /aosp_15_r20/external/llvm/test/Linker/2005-02-12-ConstantGlobals.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; Test that a prototype can be marked const, and the definition is allowed
2*9880d681SAndroid Build Coastguard Worker; to be nonconst.
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; RUN: echo "@X = global i32 7" | llvm-as > %t.2.bc
5*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s > %t.1.bc
6*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s
7*9880d681SAndroid Build Coastguard Worker; CHECK: global i32 7
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker@X = external constant i32		; <i32*> [#uses=0]
10