diff options
Diffstat (limited to 'llvm/test/Other/2002-01-31-PostDomSet-2.ll')
-rw-r--r-- | llvm/test/Other/2002-01-31-PostDomSet-2.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/Other/2002-01-31-PostDomSet-2.ll b/llvm/test/Other/2002-01-31-PostDomSet-2.ll new file mode 100644 index 00000000000..234bf4df343 --- /dev/null +++ b/llvm/test/Other/2002-01-31-PostDomSet-2.ll @@ -0,0 +1,21 @@ +; Crash in post dominator set construction. +; +; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -postdomset +; + +implementation + +int "postdomsettest"() +begin + br label %L2Top + +L2Top: + br bool true, label %L2End, label %L2Body + +L2Body: + br label %L2Top + +L2End: + ret int 0 +end + |