Steve Naroff | 65a0089 | 2009-04-07 22:56:58 +0000 | [diff] [blame] | 1 | // RUN: clang-cc %s -verify -fsyntax-only |
2 | |||||
3 | // Note: NSException is not declared. | ||||
4 | void f0(id x) { | ||||
5 | @try { | ||||
Chris Lattner | e1b4174 | 2009-04-12 23:27:53 +0000 | [diff] [blame^] | 6 | } @catch (NSException *x) { // expected-error{{unknown type name 'NSException'}} |
Steve Naroff | 65a0089 | 2009-04-07 22:56:58 +0000 | [diff] [blame] | 7 | } |
8 | } | ||||
9 |