xref: /llvm-project/clang/test/SemaObjC/method-redecls-invalid-interface.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -fsyntax-only -verify -Wdocumentation -Wno-objc-root-class %s
2
3@interface InvalidInterface { // expected-note {{previous definition is here}}
4  int *_property;
5}
6
7@end
8
9/*!
10 */
11
12@interface InvalidInterface // expected-error {{duplicate interface definition for class 'InvalidInterface'}}
13@property int *property;
14
15-(void) method;
16@end
17
18@implementation InvalidInterface
19-(void) method { }
20@end
21