2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
2009-02-16 06:24:30 +08:00
|
|
|
|
|
|
|
// Test features and error recovery for objc interfaces.
|
|
|
|
|
|
|
|
@interface INTF
|
2010-09-08 02:31:03 +08:00
|
|
|
- (int*) foo2 __attribute__((deprecated)) : (int) x1 __attribute__((deprecated)); // expected-error {{expected ';' after method prototype}} expected-error {{method type specifier must start with '-' or '+'}}
|
2009-02-16 06:24:30 +08:00
|
|
|
@end
|
|
|
|
|
2019-06-27 07:39:23 +08:00
|
|
|
@interface X
|
|
|
|
-(nullable NoSuchType)foo3; // expected-error {{expected a type}}
|
|
|
|
@end
|