blob: e63ce41f681b55f16a0f3ecfd1dd74c9f5902013 [file] [log] [blame]
Tanya Lattnerfc887452008-03-01 07:38:40 +00001; RUN: llvm-as < %s | llvm-dis > %t1.ll
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
Tanya Lattnerfc887452008-03-01 07:38:40 +00005@X = global i32 undef ; <i32*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattnerfc887452008-03-01 07:38:40 +00007declare i32 @atoi(i8*)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattnerfc887452008-03-01 07:38:40 +00009define i32 @test() {
10 ret i32 undef
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011}
12
Tanya Lattnerfc887452008-03-01 07:38:40 +000013define i32 @test2() {
14 %X = add i32 undef, 1 ; <i32> [#uses=1]
15 ret i32 %X
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016}
Tanya Lattnerfc887452008-03-01 07:38:40 +000017