blob: 33894a2c0b788252e2a1a8a0c0d619c1392fb540 [file] [log] [blame]
Steve Narofff50cb362009-03-03 20:59:06 +00001// RUN: clang -verify %s
2
Steve Naroff9d40ee52009-03-03 21:16:54 +00003@protocol P;
4
Steve Narofff50cb362009-03-03 20:59:06 +00005void f() {
6 @try {
7 } @catch (void a) { // expected-error{{@catch parameter is not an Objective-C class type}}
8 } @catch (int) { // expected-error{{@catch parameter is not an Objective-C class type}}
9 } @catch (int *b) { // expected-error{{@catch parameter is not an Objective-C class type}}
Steve Naroffd198aba2009-03-03 23:13:51 +000010 } @catch (id <P> c) { // expected-error{{illegal qualifiers on @catch parameter}}
Steve Narofff50cb362009-03-03 20:59:06 +000011 }
12}
13