Lines Matching refs:ARC
1 …yntax-only -fblocks -fobjc-arc -Wno-objc-root-class %s 2>&1 | FileCheck --check-prefix=CHECK-ARC %s
34 // CHECK-ARC: 14:1: warning: retain'ed block property does not copy the block - use copy attribute …
35 // CHECK-ARC: @property (retain) void (^aBlock)(void);
36 // CHECK-ARC: ^
37 // CHECK-ARC: 15:1: error: property attributes 'retain' and 'weak' are mutually exclusive
38 // CHECK-ARC: @property (weak, retain) void (^aBlockW)(void);
39 // CHECK-ARC: ^
40 // CHECK-ARC: 18:1: error: property attributes 'copy' and 'retain' are mutually exclusive
41 // CHECK-ARC: @property (copy, retain) void (^aBlockC)(void);
42 // CHECK-ARC: ^
43 // CHECK-ARC: 19:1: error: property attributes 'assign' and 'retain' are mutually exclusive
44 // CHECK-ARC: @property (assign, retain) void (^aBlockA)(void);
45 // CHECK-ARC: ^
46 // CHECK-ARC: 30:13: warning: assigning block literal to a weak property; object will be released a…
47 // CHECK-ARC: t.aBlockW = ^{ doSomething(); };
48 // CHECK-ARC: ^ ~~~~~~~~~~~~~~~~~~~
49 // CHECK-ARC: 2 warnings and 3 errors generated.