]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/unimplemented-protocol-prop.m
Vendor import of clang trunk r130700:
[FreeBSD/FreeBSD.git] / test / SemaObjC / unimplemented-protocol-prop.m
1 // RUN: %clang_cc1  -fsyntax-only -verify %s
2
3 @protocol PROTOCOL0
4 @required
5 @property float MyProperty0; // expected-warning {{property 'MyProperty0' requires method 'MyProperty0' to be defined }} \
6                              // expected-warning {{property 'MyProperty0' requires method 'setMyProperty0:' to be defined}}
7 @end
8
9 @protocol PROTOCOL<PROTOCOL0>
10 @required
11 @property float MyProperty; // expected-warning {{property 'MyProperty' requires method 'MyProperty' to be defined}} \
12                         // expected-warning {{property 'MyProperty' requires method 'setMyProperty:' to be defined}}
13 @optional
14 @property float OptMyProperty;
15 @end
16
17 @interface I <PROTOCOL>
18 @end
19
20 @implementation I @end // expected-note 4 {{implementation is here}}