2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -verify %s
|
2009-03-04 04:59:06 +08:00
|
|
|
|
2009-03-04 05:16:54 +08:00
|
|
|
@protocol P;
|
|
|
|
|
2009-03-04 04:59:06 +08:00
|
|
|
void f() {
|
|
|
|
@try {
|
2009-04-12 16:25:48 +08:00
|
|
|
} @catch (void a) { // expected-error{{@catch parameter is not a pointer to an interface type}}
|
|
|
|
} @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}}
|
2009-03-04 07:13:51 +08:00
|
|
|
} @catch (id <P> c) { // expected-error{{illegal qualifiers on @catch parameter}}
|
2009-03-04 04:59:06 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|