2005-02-13 03:14:11 +08:00
|
|
|
; Test that a prototype can be marked const, and the definition is allowed
|
|
|
|
; to be nonconst.
|
|
|
|
|
2007-04-16 02:11:57 +08:00
|
|
|
; RUN: echo {@X = global i32 7} | llvm-as > %t.2.bc
|
2008-03-10 15:21:50 +08:00
|
|
|
; RUN: llvm-as < %s > %t.1.bc
|
2007-04-16 02:11:57 +08:00
|
|
|
; RUN: llvm-link %t.1.bc %t.2.bc | llvm-dis | grep {global i32 7}
|
2005-02-13 03:14:11 +08:00
|
|
|
|
2008-03-10 15:21:50 +08:00
|
|
|
@X = external constant i32 ; <i32*> [#uses=0]
|