diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-02 18:12:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-02 18:12:49 +0000 |
commit | 512c2481b19b52b324854e9d744da0e33e402d54 (patch) | |
tree | e6b8a60234f9cb88e744c23f445c7fd696433d2c /test/Transforms | |
parent | bee8a094af3d93c2e8ef057d8bfec38c29904191 (diff) | |
download | external_llvm-512c2481b19b52b324854e9d744da0e33e402d54.zip external_llvm-512c2481b19b52b324854e9d744da0e33e402d54.tar.gz external_llvm-512c2481b19b52b324854e9d744da0e33e402d54.tar.bz2 |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/SimplifyCFG/return-merge.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/return-merge.ll b/test/Transforms/SimplifyCFG/return-merge.ll new file mode 100644 index 0000000..51144f0 --- /dev/null +++ b/test/Transforms/SimplifyCFG/return-merge.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br + +int %test1(bool %C) { +entry: + br bool %C, label %T, label %F +T: + ret int 1 +F: + ret int 0 +} + +void %test2(bool %C) { + br bool %C, label %T, label %F +T: + ret void +F: + ret void +} |