Add more reference-binding examples from the C++0x working paper, all of which seem...
[clang.git] / test / CodeGenObjC / super-dotsyntax-property.m
blob9dfde2d1de3abcbd0832fda085399b82b6a74803
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
3 @interface B
5   int _parent;
7 @property int parent;
8   +(int) classGetter;
9   +(void) setClassGetter:(int) arg;
11   -(int) getter;
12   -(void) setGetter:(int)arg;
13 @end
15 @interface A : B
16 @end
18 @implementation A
19 +(int) classGetter {
20   return 0;
23 +(int) classGetter2 {
24   super.classGetter = 100;
25   return super.classGetter;
28 -(void) method {
29   super.getter = 200;
30   int x = super.getter;
32 -(void) setParent : (int) arg {
33   super.parent = arg + super.parent;
34   
36 @end
38 void f0() {
39   int l1 = A.classGetter;
40   int l2 = [A classGetter2];