]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/stmts.m
Update clang to r89205.
[FreeBSD/FreeBSD.git] / test / SemaObjC / stmts.m
1 // RUN: clang-cc %s -verify -fsyntax-only
2
3 struct some_struct;
4
5 // Note: NSException is not declared.
6 void f0(id x) {
7   @try {
8   } @catch (NSException *x) { // expected-error {{unknown type name 'NSException'}}
9   } @catch (struct some_struct x) { // expected-error {{@catch parameter is not a pointer to an interface type}}
10   } @catch (int x) { // expected-error {{@catch parameter is not a pointer to an interface type}}
11   } @catch (...) {
12   }
13 }
14