blob: de7beb93aeb52caed9e80beca3065bb3b403e3c6 [file] [log] [blame]
Tanya Lattner3f7706b2004-11-07 06:08:43 +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
Chris Lattner9bbcf092004-10-16 18:24:11 +00005
6implementation
7
8declare void %bar()
9
10int %foo() { ;; Calling this function has undefined behavior
11 unreachable
12}
13
14double %xyz() {
15 call void %bar()
16 unreachable ;; Bar must not return.
17}