xref: /aosp_15_r20/external/clang/test/Parser/objc-interfaces.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 %s -fsyntax-only -verify
2*67e74705SXin Li
3*67e74705SXin Li// Test features and error recovery for objc interfaces.
4*67e74705SXin Li
5*67e74705SXin Li@interface INTF
6*67e74705SXin Li- (int*) foo2  __attribute__((deprecated)) : (int) x1 __attribute__((deprecated)); // expected-error {{expected ';' after method prototype}} expected-error {{method type specifier must start with '-' or '+'}}
7*67e74705SXin Li@end
8*67e74705SXin Li
9