add a testcase nate requested
[oota-llvm.git] / test / Feature / globalredefinition.ll
1 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
4
5 ; Test forward references and redefinitions of globals
6
7 %Y = global void()* %X
8
9 %A = global int* %B
10 %B = global int 7
11 %B = global int 7
12
13
14 declare void %X()
15
16 declare void %X()
17
18 void %X() {
19   ret void
20 }
21
22 declare void %X()