blob: 60f176b053415567e00c0881f2d7cd1dc99ae9dc [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
Reid Spenceredca80b2007-04-15 18:11:57 +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
Dan Gohman5efe5662009-09-15 15:38:31 +00006; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {global i32 7}
Chris Lattner23cf1802005-02-12 19:14:11 +00007
Tanya Lattnerceca1942008-03-10 07:21:50 +00008@X = external constant i32 ; <i32*> [#uses=0]