llvm.org GIT mirror llvm / 5b7dcaa
New test, adjust other test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20134 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
2 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 ; Test that a prototype can be marked const, and the definition is allowed
1 ; to be nonconst.
2
3 ; RUN: echo "%X = external constant int" | llvm-as > %t.2.bc
4 ; RUN: llvm-as < %s > %t.1.bc
5 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'global int 7'
6
7 %X = global int 7
22
33 ; RUN: echo "%X = global int 7" | llvm-as > %t.2.bc
44 ; RUN: llvm-as < %s > %t.1.bc
5 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep constant
5 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'global int 7'
66
77 %X = external constant int