diff options
| -rw-r--r-- | test/Analysis/Dominators/2003-05-12-UnreachableCode.ll | 15 | ||||
| -rw-r--r-- | test/Analysis/Dominators/Makefile | 10 |
2 files changed, 25 insertions, 0 deletions
diff --git a/test/Analysis/Dominators/2003-05-12-UnreachableCode.ll b/test/Analysis/Dominators/2003-05-12-UnreachableCode.ll new file mode 100644 index 0000000000..e1e71cdc94 --- /dev/null +++ b/test/Analysis/Dominators/2003-05-12-UnreachableCode.ll @@ -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 index 0000000000..91acd4d481 --- /dev/null +++ b/test/Analysis/Dominators/Makefile @@ -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) $< |
