testcases for undefined and unreachable


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17058 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Feature/unreachable.ll b/test/Feature/unreachable.ll
new file mode 100644
index 0000000..84c4552
--- /dev/null
+++ b/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.
+}