StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / CodeGenObjC / property-agrr-getter.m
blob2dd32bb4f3732425c8d37a75bc177c2913f9457a
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
3 typedef struct {
4   unsigned f0;
5 } s0;
7 @interface A
8 - (s0) f0;
9 @end
11 @implementation A
12 -(s0) f0{ while (1) {} }
13 - (unsigned) bar {
14   return self.f0.f0;
16 @end
19 typedef struct _NSSize {
20     float width;
21     float height;
22 } NSSize;
25 @interface AnObject
27  NSSize size;
30 @property NSSize size;
32 @end
34 float f ()
36   AnObject* obj;
37   return (obj.size).width;