diff options
-rw-r--r-- | test/Transforms/SimplifyCFG/BrUnwind.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/BrUnwind.ll b/test/Transforms/SimplifyCFG/BrUnwind.ll new file mode 100644 index 0000000..6426417 --- /dev/null +++ b/test/Transforms/SimplifyCFG/BrUnwind.ll @@ -0,0 +1,12 @@ +;RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br label' +void %test(bool %C) { + br bool %C, label %A, label %B +A: + call void %test(bool %C) + br label %X +B: + call void %test(bool %C) + br label %X +X: + unwind +} |