summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/trap.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-15 22:17:26 +0000
committerChris Lattner <sabre@nondot.org>2008-01-15 22:17:26 +0000
commit50baecd31e4a1a788c1a5c579972bb17faa2736a (patch)
treeb5d8f96c54fbc83e245bd516c2180db91aca0830 /llvm/test/CodeGen/Generic/trap.ll
parent8e07533f20aa438445817bc3a4e92c54f82196bf (diff)
downloadbcm5719-llvm-50baecd31e4a1a788c1a5c579972bb17faa2736a.tar.gz
bcm5719-llvm-50baecd31e4a1a788c1a5c579972bb17faa2736a.zip
new testcase for llvm.trap.
llvm-svn: 46020
Diffstat (limited to 'llvm/test/CodeGen/Generic/trap.ll')
-rw-r--r--llvm/test/CodeGen/Generic/trap.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/trap.ll b/llvm/test/CodeGen/Generic/trap.ll
new file mode 100644
index 00000000000..4dfc1a6450b
--- /dev/null
+++ b/llvm/test/CodeGen/Generic/trap.ll
@@ -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
+
OpenPOWER on IntegriCloud