linux-packaging-mono/external/llvm-project/llvm/test/Linker/2005-02-12-ConstantGlobals-2.ll
Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

10 lines
277 B
LLVM

; Test that a prototype can be marked const, and the definition is allowed
; to be nonconst.
; RUN: echo "@X = external constant i32" | llvm-as > %t.2.bc
; RUN: llvm-as < %s > %t.1.bc
; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s
; CHECK: global i32 7
@X = global i32 7