llvm-for-llvmta/tools/clang/test/Parser/objc-interfaces.m

12 lines
418 B
Mathematica
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 %s -fsyntax-only -verify
// Test features and error recovery for objc interfaces.
@interface INTF
- (int*) foo2 __attribute__((deprecated)) : (int) x1 __attribute__((deprecated)); // expected-error {{expected ';' after method prototype}} expected-error {{method type specifier must start with '-' or '+'}}
@end
@interface X
-(nullable NoSuchType)foo3; // expected-error {{expected a type}}
@end