blob: e7b37eedc6d8cdaaac849f606dafc7f1779b0eec [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll
Tanya Lattner3f7706b2004-11-07 06:08:43 +00002; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
Chris Lattnerf05591d2004-07-14 22:59:47 +00005; 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
14declare void %X()
15
16declare void %X()
17
18void %X() {
19 ret void
20}
21
22declare void %X()