From 0999758bcffe62f1c156b291e83e4b603c64ca39 Mon Sep 17 00:00:00 2001 From: Amaury Sechet Date: Tue, 9 Feb 2016 22:36:41 +0000 Subject: 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 --- test/Bindings/llvm-c/echo.ll | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/Bindings') 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 +} -- cgit v1.2.3