2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
2009-02-14 16:09:34 +08:00
|
|
|
|
|
|
|
__attribute__((__objc_exception__))
|
|
|
|
@interface NSException {
|
|
|
|
int x;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
2013-07-18 22:56:42 +08:00
|
|
|
__attribute__((__objc_exception__)) // expected-error {{'__objc_exception__' attribute only applies to Objective-C interfaces}}
|
2009-02-14 16:09:34 +08:00
|
|
|
int X;
|
|
|
|
|
2013-07-18 22:56:42 +08:00
|
|
|
__attribute__((__objc_exception__)) // expected-error {{'__objc_exception__' attribute only applies to Objective-C interfaces}}
|
2009-02-14 16:09:34 +08:00
|
|
|
void foo();
|
|
|
|
|