summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/catch-stmt.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/catch-stmt.m')
-rw-r--r--test/SemaObjC/catch-stmt.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjC/catch-stmt.m b/test/SemaObjC/catch-stmt.m
index 80c986f..ef1da37 100644
--- a/test/SemaObjC/catch-stmt.m
+++ b/test/SemaObjC/catch-stmt.m
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -verify %s
-
+@interface A @end
@protocol P;
void f() {
@@ -8,6 +8,6 @@ void f() {
} @catch (int) { // expected-error{{@catch parameter is not a pointer to an interface type}}
} @catch (int *b) { // expected-error{{@catch parameter is not a pointer to an interface type}}
} @catch (id <P> c) { // expected-error{{illegal qualifiers on @catch parameter}}
- }
+ } @catch(A* a) { }
}
OpenPOWER on IntegriCloud