Index: test/Transforms/NaCl/simplify-struct-reg-pad-crash.ll |
diff --git a/test/Transforms/NaCl/simplify-struct-reg-pad-crash.ll b/test/Transforms/NaCl/simplify-struct-reg-pad-crash.ll |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2a85413532818ea67a9e02bca7758350bd56df0d |
--- /dev/null |
+++ b/test/Transforms/NaCl/simplify-struct-reg-pad-crash.ll |
@@ -0,0 +1,21 @@ |
+; RUN: not opt < %s -simplify-struct-reg-signatures -S |
+ |
+%struct = type { i32, i32 } |
+ |
+declare i32 @__hypothetical_personality_1(%struct) |
+ |
+declare void @something_to_invoke() |
+ |
+; landingpad with struct |
+define void @landingpad_is_struct() { |
+ invoke void @something_to_invoke() |
+ to label %OK unwind label %Err |
+ |
+OK: |
+ ret void |
+ |
+Err: |
+ %exn = landingpad i32 personality i32(%struct)* @__hypothetical_personality_1 |
+ cleanup |
+ resume i32 %exn |
+} |