1*67e74705SXin Li// RUN: %clang_cc1 %s -fsyntax-only -verify 2*67e74705SXin Li 3*67e74705SXin Li__attribute__((__objc_exception__)) 4*67e74705SXin Li@interface NSException { 5*67e74705SXin Li int x; 6*67e74705SXin Li} 7*67e74705SXin Li 8*67e74705SXin Li@end 9*67e74705SXin Li 10*67e74705SXin Li 11*67e74705SXin Li__attribute__((__objc_exception__)) // expected-error {{'__objc_exception__' attribute only applies to Objective-C interfaces}} 12*67e74705SXin Liint X; 13*67e74705SXin Li 14*67e74705SXin Li__attribute__((__objc_exception__)) // expected-error {{'__objc_exception__' attribute only applies to Objective-C interfaces}} 15*67e74705SXin Livoid foo(); 16*67e74705SXin Li 17