brintos

brintos / llvm-project-archived public Read only

0
0
Text · 503 B · c6fff9c Raw
14 lines · plain
1// RUN: %clang_cc1 -verify -fobjc-exceptions %s2@interface A @end3@protocol P;4 5void f(void) {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) { }12}13 14