1 // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fblocks -Wno-objc-root-class -verify %s
3 // [p foo] in ARC creates a cleanup.
4 // The plus is invalid and causes the cleanup to go unbound.
9 void takeBlock(void (^)(void));
11 takeBlock(^{ [p foo] + p; }); // expected-error {{invalid operands to binary expression}}
15 __autoreleasing id p; // expected-note {{'p' declared here}}
16 takeBlock(^{ (void) p; }); // expected-error {{cannot capture __autoreleasing variable in a block}}
20 @interface WebView // expected-note {{previous definition is here}}
21 - (WebFrame *)mainFrame;
24 @interface WebView // expected-error {{duplicate interface definition for class 'WebView'}}
25 @property (nonatomic, readonly, strong) WebFrame *mainFrame;
28 @interface UIWebDocumentView
32 @interface UIWebBrowserView : UIWebDocumentView
35 @interface StoreBanner @end
37 @implementation StoreBanner
38 + (void)readMetaTagContentForUIWebBrowserView:(UIWebBrowserView *)browserView
40 [[browserView webView] mainFrame];