summaryrefslogtreecommitdiffstats
path: root/test/PCH/objc_stmts.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/objc_stmts.h')
-rw-r--r--test/PCH/objc_stmts.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/PCH/objc_stmts.h b/test/PCH/objc_stmts.h
new file mode 100644
index 0000000..5f705df
--- /dev/null
+++ b/test/PCH/objc_stmts.h
@@ -0,0 +1,22 @@
+/* For use with the methods.m test */
+
+@interface A
+@end
+
+@interface B
+@end
+
+@interface TestPCH
+- (void)instMethod;
+@end
+
+@implementation TestPCH
+- (void)instMethod {
+ @try {
+ } @catch(A *a) {
+ } @catch(B *b) {
+ } @catch(...) {
+ } @finally {
+ }
+}
+@end
OpenPOWER on IntegriCloud