summaryrefslogtreecommitdiffstats
path: root/clang/test/Import/objc-try-catch/Inputs/F.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Import/objc-try-catch/Inputs/F.m')
-rw-r--r--clang/test/Import/objc-try-catch/Inputs/F.m28
1 files changed, 28 insertions, 0 deletions
diff --git a/clang/test/Import/objc-try-catch/Inputs/F.m b/clang/test/Import/objc-try-catch/Inputs/F.m
new file mode 100644
index 00000000000..5b8b67549b3
--- /dev/null
+++ b/clang/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 {
+ }
+}
OpenPOWER on IntegriCloud