From: Chris Lattner Date: Tue, 15 Jan 2008 22:17:26 +0000 (+0000) Subject: new testcase for llvm.trap. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9a856b049d767e9da43736e9f05c7a7c772fb404;p=oota-llvm.git new testcase for llvm.trap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46020 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/Generic/trap.ll b/test/CodeGen/Generic/trap.ll new file mode 100644 index 00000000000..4dfc1a6450b --- /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 +