[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / property-noprotocol-warning.m
blob71bb86a301effd46bbbef1eefb108ae271415e3b
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 @interface Object
5 + (id) new;
6 @end
8 @protocol GCObject
9 @property int class;
10 @end
12 @protocol DerivedGCObject <GCObject>
13 @property int Dclass;
14 @end
16 @interface GCObject  : Object <DerivedGCObject> {
17     int ifield;
18     int iOwnClass;
19     int iDclass;
21 @property int OwnClass;
22 @end
24 @implementation GCObject : Object
25 @synthesize class=ifield;
26 @synthesize Dclass=iDclass;
27 @synthesize OwnClass=iOwnClass;
28 @end
30 int main(int argc, char **argv) {
31     GCObject *f = [GCObject new];
32     f.class = 5;
33     f.Dclass = 1;
34     f.OwnClass = 3;
35     return f.class + f.Dclass  + f.OwnClass - 9;