diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-12 23:29:27 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-12 23:29:27 +0000 |
| commit | bdccb0393c0b336b5065d2de2a3e07cfebd96cd7 (patch) | |
| tree | 7231b7896649b45bd63a228dca6119b2d4e30813 /clang | |
| parent | e1b4174a9a2dc82e93526caf54ba6e195bc24177 (diff) | |
| download | bcm5719-llvm-bdccb0393c0b336b5065d2de2a3e07cfebd96cd7.tar.gz bcm5719-llvm-bdccb0393c0b336b5065d2de2a3e07cfebd96cd7.zip | |
add some more coverage.
llvm-svn: 68928
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/SemaObjC/stmts.m | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/stmts.m b/clang/test/SemaObjC/stmts.m index 1d096f5e71f..1d4ea0a7718 100644 --- a/clang/test/SemaObjC/stmts.m +++ b/clang/test/SemaObjC/stmts.m @@ -1,9 +1,14 @@ // RUN: clang-cc %s -verify -fsyntax-only +struct some_struct; + // Note: NSException is not declared. void f0(id x) { @try { - } @catch (NSException *x) { // expected-error{{unknown type name 'NSException'}} + } @catch (NSException *x) { // expected-error {{unknown type name 'NSException'}} + } @catch (struct some_struct x) { // expected-error {{@catch parameter is not a pointer to an interface type}} + } @catch (int x) { // expected-error {{@catch parameter is not a pointer to an interface type}} + } @catch (...) { } } |

