blob: 93709cf50bedce424a6372cff2550df871de898d [file] [log] [blame]
Chris Lattner6af31472005-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 Carrutha5a29f92012-07-02 12:47:22 +00004; RUN: echo "@X = global i32 7" | llvm-as > %t.2.bc
Tanya Lattner5f4b3552008-03-10 07:21:50 +00005; RUN: llvm-as < %s > %t.1.bc
Chandler Carrutha5a29f92012-07-02 12:47:22 +00006; RUN: llvm-link %t.1.bc %t.2.bc -S | grep "global i32 7"
Chris Lattner6af31472005-02-12 19:14:11 +00007
Tanya Lattner5f4b3552008-03-10 07:21:50 +00008@X = external constant i32 ; <i32*> [#uses=0]