2008-03-01 15:38:40 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis > %t1.ll
|
2004-11-07 14:08:43 +08:00
|
|
|
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
|
|
|
|
; RUN: diff %t1.ll %t2.ll
|
|
|
|
|
2008-03-01 15:38:40 +08:00
|
|
|
declare void @bar()
|
2004-10-17 02:24:11 +08:00
|
|
|
|
2008-03-01 15:38:40 +08:00
|
|
|
define i32 @foo() {
|
|
|
|
unreachable
|
2004-10-17 02:24:11 +08:00
|
|
|
}
|
|
|
|
|
2008-03-01 15:38:40 +08:00
|
|
|
define double @xyz() {
|
|
|
|
call void @bar( )
|
|
|
|
unreachable
|
2004-10-17 02:24:11 +08:00
|
|
|
}
|
2008-03-01 15:38:40 +08:00
|
|
|
|