summaryrefslogtreecommitdiff
path: root/test/Import/objc-try-catch/Inputs/F.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/objc-try-catch/Inputs/F.m')
-rw-r--r--test/Import/objc-try-catch/Inputs/F.m28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/Import/objc-try-catch/Inputs/F.m b/test/Import/objc-try-catch/Inputs/F.m
new file mode 100644
index 000000000000..5b8b67549b33
--- /dev/null
+++ b/test/Import/objc-try-catch/Inputs/F.m
@@ -0,0 +1,28 @@
+@interface Exception
+@end
+@interface OtherException
+@end
+
+void f() {
+ @try {
+ Exception *e;
+ @throw e;
+ }
+ @catch (Exception *varname) {
+ }
+ @finally {
+ }
+
+ @try {
+ }
+ @catch (Exception *varname1) {
+ @throw;
+ }
+ @catch (OtherException *varname2) {
+ }
+
+ @try {
+ }
+ @finally {
+ }
+}