1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -fsyntax-only -fobjc-arc -x objective-c -fobjc-runtime-has-weak %s.result
2 // RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fblocks -fsyntax-only %s > %t
3 // RUN: diff %t %s.result
7 @interface Foo : NSObject
11 void bar(void (^block)(void));
14 __weak Foo *x = p; // __block used just to break cycle.
21 __block Foo *x; // __block used as output variable.
28 __block Foo *x; // __block used as output variable.
38 __weak Foo *x = p; // __block used just to break cycle.