summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/catch-stmt.m
blob: 9aa6e057f4fded3841d98ca57d935d5d173d9759 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang -verify %s

void f() {
  @try {
  } @catch (void a) { // expected-error{{@catch parameter is not an Objective-C class type}}
  } @catch (int) { // expected-error{{@catch parameter is not an Objective-C class type}}
  } @catch (int *b) { // expected-error{{@catch parameter is not an Objective-C class type}}
  }
}

OpenPOWER on IntegriCloud