Patch to parse objective-c's @try-statement and @throw-statement.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42148 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/objc-try-catch-1.m b/test/Parser/objc-try-catch-1.m
new file mode 100644
index 0000000..f4a1201
--- /dev/null
+++ b/test/Parser/objc-try-catch-1.m
@@ -0,0 +1,36 @@
+void * proc();
+
+@interface Frob
+@end
+
+@interface Frob1
+@end
+
+void * foo()
+{
+        @try {
+                return proc();
+        }
+        @catch (Frob* ex) {
+                @throw;
+        }
+        @catch (Frob1* ex) {
+                @throw proc();
+        }
+        @finally {
+	  @try {
+                return proc();
+          }
+          @catch (Frob* ex) {
+                @throw;
+          }
+	  @catch(...) {
+	    @throw (4,3,proc());
+	  }
+        }
+
+	@try {  // expected-error {{@try statment without a @catch and @finally clause}}
+                return proc();
+        }
+}
+