aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/exception-go-boom.m
blob: 774ae7cd63907a33e214984c24dbca3e71420dad (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang-cc %s -verify -fsyntax-only

// Note: NSException is not declared.
void f0(id x) {
  @try {
  } @catch (NSException *x) { // \
         expected-error{{unknown type name 'NSException'}} \
         expected-error{{@catch parameter is not a pointer to an interface type}}
  }
}