blob: 60b7bf8eb92c734c8fc4f5057019b4f439c85de2 [file] [log] [blame]
Reid Spencer50006ba2007-01-16 18:08:22 +00001; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
5
6implementation
7
Reid Spencerce380562007-01-26 08:25:06 +00008declare void @bar()
Reid Spencer50006ba2007-01-16 18:08:22 +00009
Reid Spencerce380562007-01-26 08:25:06 +000010define i9 @foo() { ;; Calling this function has undefined behavior
Reid Spencer50006ba2007-01-16 18:08:22 +000011 unreachable
12}
13
Reid Spencerce380562007-01-26 08:25:06 +000014define double @xyz() {
15 call void @bar()
Reid Spencer50006ba2007-01-16 18:08:22 +000016 unreachable ;; Bar must not return.
17}