Fix the clang-wpa example.
[clang.git] / test / CodeGenObjC / continuation-class.m
blob6f903a0d6ba2b525a34f26606f5b82ce8a1c93f7
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
3 @interface Object
4 - (id)new;
5 @end
7 @interface ReadOnly : Object
9   int _object;
10   int _Anotherobject;
12 @property(readonly) int object;
13 @property(readonly) int Anotherobject;
14 @end
16 @interface ReadOnly ()
17 @property(readwrite) int object;
18 @property(readwrite, setter = myAnotherobjectSetter:) int Anotherobject;
19 @end
21 @implementation ReadOnly
22 @synthesize object = _object;
23 @synthesize  Anotherobject = _Anotherobject;
24 - (void) myAnotherobjectSetter : (int)val {
25     _Anotherobject = val;
27 @end
29 int main(int argc, char **argv) {
30     ReadOnly *test = [ReadOnly new];
31     test.object = 12345;
32     test.Anotherobject = 200;
33     return test.object - 12345 + test.Anotherobject - 200;