From 9a856b049d767e9da43736e9f05c7a7c772fb404 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Jan 2008 22:17:26 +0000 Subject: [PATCH] new testcase for llvm.trap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46020 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Generic/trap.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/CodeGen/Generic/trap.ll 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 + -- 2.34.1