blob: fbc0bc141de6a99f0adfff43e5d61dcb93b613f6 [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
Reid Spencereacb7022006-12-31 06:02:00 +00005; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
Reid Spenceredca80b2007-04-15 18:11:57 +00006; RUN: llvm-link %t.1.bc %t.2.bc | llvm-dis | grep {global i32 7}
Chris Lattner23cf1802005-02-12 19:14:11 +00007
Reid Spenceredca80b2007-04-15 18:11:57 +00008@X = external constant i32