blob: db990604d9a8fb5f138a8449db0d1c25128f6c4d [file] [log] [blame]
Chris Lattner23cf1802005-02-12 19:14:11 +00001; Test that a prototype can be marked const, and the definition is allowed
2; to be nonconst.
3
Chandler Carruth4177e6f2012-07-02 12:47:22 +00004; RUN: echo "@X = global i32 7" | llvm-as > %t.2.bc
Tanya Lattnerceca1942008-03-10 07:21:50 +00005; RUN: llvm-as < %s > %t.1.bc
Eli Benderskyd7170ea2013-04-09 16:51:13 +00006; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s
7; CHECK: global i32 7
Chris Lattner23cf1802005-02-12 19:14:11 +00008
Tanya Lattnerceca1942008-03-10 07:21:50 +00009@X = external constant i32 ; <i32*> [#uses=0]