diff options
| author | Easwaran Raman <eraman@google.com> | 2016-04-13 19:43:31 +0000 |
|---|---|---|
| committer | Easwaran Raman <eraman@google.com> | 2016-04-13 19:43:31 +0000 |
| commit | cbd39897422bf686076e153b088670bab7aeb112 (patch) | |
| tree | 0e96e939724da73dff7a8dc9bf0fd7c3747f3d12 /llvm/test | |
| parent | 5413f6f863540b45bed61e577bf5c2cc85ae08a4 (diff) | |
| download | bcm5719-llvm-cbd39897422bf686076e153b088670bab7aeb112.tar.gz bcm5719-llvm-cbd39897422bf686076e153b088670bab7aeb112.zip | |
Test case for r265852.
llvm-svn: 266237
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/Inline/inline_unreachable-2.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/Transforms/Inline/inline_unreachable-2.ll b/llvm/test/Transforms/Inline/inline_unreachable-2.ll new file mode 100644 index 00000000000..57f090effc5 --- /dev/null +++ b/llvm/test/Transforms/Inline/inline_unreachable-2.ll @@ -0,0 +1,19 @@ +; RUN: opt < %s -inline -S | FileCheck %s + +; CHECK-LABEL: caller +; CHECK: call void @callee +define void @caller(i32 %a, i1 %b) #0 { + call void @callee(i32 %a, i1 %b) + unreachable +} + +define void @callee(i32 %a, i1 %b) { + call void asm sideeffect "", ""() + br i1 %b, label %bb1, label %bb2 +bb1: + call void asm sideeffect "", ""() + ret void +bb2: + call void asm sideeffect "", ""() + ret void +} |

