Add a test for the -suppress-warnings option.
[oota-llvm.git] / test / Feature / unreachable.ll
1 ; RUN: llvm-as < %s | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
4
5 declare void @bar()
6
7 define i32 @foo() {
8         unreachable
9 }
10
11 define double @xyz() {
12         call void @bar( )
13         unreachable
14 }
15