Debian Codegraph @

clang/test/SemaObjC/method-redecls-invalid-interface.m

raw
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