blob: 7d2e813146512857f2536db623755d3fce285057 [file] [log] [blame]
Chris Lattner5b7dcaa2005-02-12 19:19:36 +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 = external constant i32" | llvm-as > %t.2.bc
Reid Spenceredca80b2007-04-15 18:11:57 +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 Lattner5b7dcaa2005-02-12 19:19:36 +00008
Reid Spenceredca80b2007-04-15 18:11:57 +00009@X = global i32 7