blob: 6dcbcdebfba44f3dc85a5afab8f3c5c35c5a6009 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -verify %s
Steve Narofff50cb362009-03-03 20:59:06 +00002
Steve Naroff9d40ee52009-03-03 21:16:54 +00003@protocol P;
4
Steve Narofff50cb362009-03-03 20:59:06 +00005void f() {
6 @try {
Chris Lattner05af2622009-04-12 08:25:48 +00007 } @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}}
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