new testcase for llvm.trap.
authorChris Lattner <sabre@nondot.org>
Tue, 15 Jan 2008 22:17:26 +0000 (22:17 +0000)
committerChris 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]

diff --git a/test/CodeGen/Generic/trap.ll b/test/CodeGen/Generic/trap.ll
new file mode 100644 (file)
index 0000000..4dfc1a6
--- /dev/null
@@ -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 
+