Tanya Lattner | 9bc243b | 2008-03-01 07:38:40 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis > %t1.ll |
Tanya Lattner | 3f7706b | 2004-11-07 06:08:43 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll |
3 | ; RUN: diff %t1.ll %t2.ll | ||||
4 | |||||
Tanya Lattner | 9bc243b | 2008-03-01 07:38:40 +0000 | [diff] [blame] | 5 | declare void @bar() |
Chris Lattner | 9bbcf09 | 2004-10-16 18:24:11 +0000 | [diff] [blame] | 6 | |
Tanya Lattner | 9bc243b | 2008-03-01 07:38:40 +0000 | [diff] [blame] | 7 | define i32 @foo() { |
8 | unreachable | ||||
Chris Lattner | 9bbcf09 | 2004-10-16 18:24:11 +0000 | [diff] [blame] | 9 | } |
10 | |||||
Tanya Lattner | 9bc243b | 2008-03-01 07:38:40 +0000 | [diff] [blame] | 11 | define double @xyz() { |
12 | call void @bar( ) | ||||
13 | unreachable | ||||
Chris Lattner | 9bbcf09 | 2004-10-16 18:24:11 +0000 | [diff] [blame] | 14 | } |
Tanya Lattner | 9bc243b | 2008-03-01 07:38:40 +0000 | [diff] [blame] | 15 |