blob: 642c093d163c945436b851baee3fc50e4fabba7a [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | 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%A = global int* %B
8%B = global int 7
9
10declare void %X()
11
12declare void %X()
13
14void %X() {
15 ret void
16}
17
18declare void %X()