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 { | ||||
6 | } @catch (NSException *x) { // expected-warning{{type specifier missing, defaults to 'int'}} expected-error{{@catch parameter is not an Objective-C class type}} | ||||
7 | } | ||||
8 | } | ||||
9 |