[llvm-commits] [llvm] r46020 - /llvm/trunk/test/CodeGen/Generic/trap.ll
Chris Lattner
sabre at nondot.org
Tue Jan 15 14:17:33 PST 2008
Author: lattner
Date: Tue Jan 15 16:17:26 2008
New Revision: 46020
URL: http://llvm.org/viewvc/llvm-project?rev=46020&view=rev
Log:
new testcase for llvm.trap.
Added:
llvm/trunk/test/CodeGen/Generic/trap.ll
Added: llvm/trunk/test/CodeGen/Generic/trap.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/trap.ll?rev=46020&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/trap.ll (added)
+++ llvm/trunk/test/CodeGen/Generic/trap.ll Tue Jan 15 16:17:26 2008
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc
+define i32 @test() noreturn nounwind {
+entry:
+ tail call void @llvm.trap( )
+ unreachable
+}
+
+declare void @llvm.trap() nounwind
+
More information about the llvm-commits
mailing list