Improve the diagnostic for -Wcustom-atomic-properties. Suggestion by Fariborz!
[clang.git] / test / SemaObjC / catch-stmt.m
blobef1da377094cb9e97563174f89182601d57f2d0c
1 // RUN: %clang_cc1 -verify %s
2 @interface A @end
3 @protocol P;
5 void f() {
6   @try {
7   } @catch (void a) { // expected-error{{@catch parameter is not a pointer to an interface type}}
8   } @catch (int) { // expected-error{{@catch parameter is not a pointer to an interface type}}
9   } @catch (int *b) { // expected-error{{@catch parameter is not a pointer to an interface type}}
10   } @catch (id <P> c) { // expected-error{{illegal qualifiers on @catch parameter}}
11   } @catch(A* a) { }