1*67e74705SXin Li// RUN: %clang_cc1 -verify -fobjc-exceptions %s 2*67e74705SXin Li@interface A @end 3*67e74705SXin Li@protocol P; 4*67e74705SXin Li 5*67e74705SXin Livoid f() { 6*67e74705SXin Li @try { 7*67e74705SXin Li } @catch (void a) { // expected-error{{@catch parameter is not a pointer to an interface type}} 8*67e74705SXin Li } @catch (int) { // expected-error{{@catch parameter is not a pointer to an interface type}} 9*67e74705SXin Li } @catch (int *b) { // expected-error{{@catch parameter is not a pointer to an interface type}} 10*67e74705SXin Li } @catch (id <P> c) { // expected-error{{illegal qualifiers on @catch parameter}} 11*67e74705SXin Li } @catch(A* a) { } 12*67e74705SXin Li} 13*67e74705SXin Li 14