New testcase
authorChris Lattner <sabre@nondot.org>
Mon, 12 May 2003 22:28:15 +0000 (22:28 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 May 2003 22:28:15 +0000 (22:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6157 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/Dominators/2003-05-12-UnreachableCode.ll [new file with mode: 0644]
test/Analysis/Dominators/Makefile [new file with mode: 0644]

diff --git a/test/Analysis/Dominators/2003-05-12-UnreachableCode.ll b/test/Analysis/Dominators/2003-05-12-UnreachableCode.ll
new file mode 100644 (file)
index 0000000..e1e71cd
--- /dev/null
@@ -0,0 +1,15 @@
+; RUN: analyze %s -domset -disable-verify
+;
+int %re_match_2() {
+ENTRY:
+       br label %loopexit.20
+loopentry.20:
+       br label %loopexit.20
+
+loopexit.20:
+       ret int 0
+
+endif.46:   ; UNREACHABLE
+       br label %loopentry.20
+
+}
diff --git a/test/Analysis/Dominators/Makefile b/test/Analysis/Dominators/Makefile
new file mode 100644 (file)
index 0000000..91acd4d
--- /dev/null
@@ -0,0 +1,10 @@
+
+LEVEL = ../../../..
+include $(LEVEL)/test/Makefile.tests
+
+TESTS := $(wildcard *.ll)
+
+all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
+
+Output/%.ll.out: %.ll Output/.dir $(LOPT)
+       -$(TESTRUNR) $<