projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e46307a
)
new testcase for llvm.trap.
author
Chris Lattner
<sabre@nondot.org>
Tue, 15 Jan 2008 22:17:26 +0000
(22:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 15 Jan 2008 22:17:26 +0000
(22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46020
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/Generic/trap.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/test/CodeGen/Generic/trap.ll
b/test/CodeGen/Generic/trap.ll
new file mode 100644
(file)
index 0000000..
4dfc1a6
--- /dev/null
+++ b/
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
+