commit | aef20fbbb95f8f982ec5db80993799cc13a0c830 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Oct 16 18:24:11 2004 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Oct 16 18:24:11 2004 +0000 |
tree | 7739950ddfea4faf18ddc6311c0fcfdf349cab1f | |
parent | fcfe78eaf81d6d27a47b15704c4d64cfc56b2b98 [diff] [blame] |
testcases for undefined and unreachable llvm-svn: 17058
diff --git a/llvm/test/Feature/unreachable.ll b/llvm/test/Feature/unreachable.ll new file mode 100644 index 0000000..84c4552 --- /dev/null +++ b/llvm/test/Feature/unreachable.ll
@@ -0,0 +1,13 @@ + +implementation + +declare void %bar() + +int %foo() { ;; Calling this function has undefined behavior + unreachable +} + +double %xyz() { + call void %bar() + unreachable ;; Bar must not return. +}