diff options
author | Amaury Sechet <deadalnix@gmail.com> | 2016-02-09 22:36:41 +0000 |
---|---|---|
committer | Amaury Sechet <deadalnix@gmail.com> | 2016-02-09 22:36:41 +0000 |
commit | 0999758bcffe62f1c156b291e83e4b603c64ca39 (patch) | |
tree | 1cd7e51c81e71e63272fcce39906b5c57c2cb9a4 /test/Bindings | |
parent | fff6db5983bd35fcb9db3d1be7dead54d2b41180 (diff) |
Improve the C API echo test tool to emit basic block is the right order.
Summary: As per title. Also add a facility method to get the name of a basic block from the C API.
Reviewers: bogner, chandlerc, echristo, dblaikie, joker.eph, Wallbraker
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D16912
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bindings')
-rw-r--r-- | test/Bindings/llvm-c/echo.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Bindings/llvm-c/echo.ll b/test/Bindings/llvm-c/echo.ll index 30e7f4facfa..04ab50f0dfc 100644 --- a/test/Bindings/llvm-c/echo.ll +++ b/test/Bindings/llvm-c/echo.ll @@ -42,3 +42,11 @@ define i32 @call() { %1 = call i32 @iops(i32 23, i32 19) ret i32 %1 } + +define i32 @bborder(i32 %a, i32 %b) { + br label %br +unreachable: + unreachable +br: + br label %unreachable +} |