1 ; Test that: extern int X[] and int X[] = { 1, 2, 3, 4 } are resolved
4 ; RUN: if as < %s | opt -funcresolve > /dev/null
5 ; RUN: then echo "opt ok"
6 ; RUN: else exit 1 # Make sure opt doesn't abort!
9 ; RUN: if as < %s | opt -funcresolve | dis | grep external
15 %X = external global [0 x int]
16 %X = global [4 x int] [ int 1, int 2, int 3, int 4 ]
18 implementation ; Functions:
22 store int 5, int* getelementptr ([0 x int]* %X, long 0, long 2)
23 %F = getelementptr [0 x int]* %X, long 0, long 2