aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-21 18:04:58 +0000
committerChris Lattner <sabre@nondot.org>2002-05-21 18:04:58 +0000
commit94c75eccf157310d623e559688318d5ed3a031b3 (patch)
tree59b22e68184c4bd8cedeeb2b1e80678eb043a563 /test/CodeGen/CBackend
parent8532fb0d137e450b181937096e1cba924b853499 (diff)
downloadexternal_llvm-94c75eccf157310d623e559688318d5ed3a031b3.zip
external_llvm-94c75eccf157310d623e559688318d5ed3a031b3.tar.gz
external_llvm-94c75eccf157310d623e559688318d5ed3a031b3.tar.bz2
New TEstcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/CBackend')
-rw-r--r--test/CodeGen/CBackend/2002-05-21-MissingReturn.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2002-05-21-MissingReturn.ll b/test/CodeGen/CBackend/2002-05-21-MissingReturn.ll
new file mode 100644
index 0000000..2fd3e27
--- /dev/null
+++ b/test/CodeGen/CBackend/2002-05-21-MissingReturn.ll
@@ -0,0 +1,15 @@
+; This case was emitting code that looked like this:
+; ...
+; llvm_BB1: /* no statement here */
+; }
+;
+; Which the Sun C compiler rejected, so now we are sure to put a return
+; instruction in there if the basic block is otherwise empty.
+;
+void "test"() {
+ br label %BB1
+BB2:
+ br label %BB2
+BB1:
+ ret void
+}