summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-19 22:29:10 +0000
committerChris Lattner <sabre@nondot.org>2008-04-19 22:29:10 +0000
commit50fb77f829b5395abf52b949624166570a7a73a0 (patch)
tree7be50ec611dc2d8cb2f9174cfdbcc3103b68a4e6 /llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll
parentfe48fbc1f155888230dc40070b47302a624c9590 (diff)
downloadbcm5719-llvm-50fb77f829b5395abf52b949624166570a7a73a0.tar.gz
bcm5719-llvm-50fb77f829b5395abf52b949624166570a7a73a0.zip
rename *.llx -> *.ll
llvm-svn: 49970
Diffstat (limited to 'llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll')
-rw-r--r--llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll b/llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll
new file mode 100644
index 00000000000..10d40693d8e
--- /dev/null
+++ b/llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll
@@ -0,0 +1,17 @@
+; RUN: llvm-as < %s | llc -enable-correct-eh-support
+
+define i32 @test() {
+ unwind
+}
+
+define i32 @main() {
+ %X = invoke i32 @test( )
+ to label %cont unwind label %EH ; <i32> [#uses=0]
+
+cont: ; preds = %0
+ ret i32 1
+
+EH: ; preds = %0
+ ret i32 0
+}
+
OpenPOWER on IntegriCloud