diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-29 22:15:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-29 22:15:51 +0000 |
commit | 2b39c91a409256ccd944c21b388aef1f2db30bd1 (patch) | |
tree | a1e15b824a24fdb0c9a1aac616d1312162338b37 /test/Transforms/LowerInvoke | |
parent | 92bc3bc11c2d439264b1cf9e7fc5bc79f4215a54 (diff) | |
download | llvm-2b39c91a409256ccd944c21b388aef1f2db30bd1.tar.gz llvm-2b39c91a409256ccd944c21b388aef1f2db30bd1.tar.bz2 llvm-2b39c91a409256ccd944c21b388aef1f2db30bd1.tar.xz |
Testcase for a bug that caused a whole bunch of testcases to die in the nightly
tester last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LowerInvoke')
-rw-r--r-- | test/Transforms/LowerInvoke/2004-02-29-PHICrash.llx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Transforms/LowerInvoke/2004-02-29-PHICrash.llx b/test/Transforms/LowerInvoke/2004-02-29-PHICrash.llx new file mode 100644 index 0000000000..5454eae5f9 --- /dev/null +++ b/test/Transforms/LowerInvoke/2004-02-29-PHICrash.llx @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | opt -lowerinvoke -enable-correct-eh-support -disable-output + +void %_ZNKSt11__use_cacheISt16__numpunct_cacheIcEEclERKSt6locale() { +entry: + br bool false, label %then, label %UnifiedReturnBlock + +then: ; preds = %entry + invoke void %_Znwj( ) + to label %UnifiedReturnBlock unwind label %UnifiedReturnBlock + +UnifiedReturnBlock: ; preds = %entry, %then, %then + %UnifiedRetVal = phi int* [ null, %entry ], [ null, %then ], [ null, %then ] + ret void +} + +declare void %_Znwj() |