// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-objc-root-class -verify %s
voidTestObjcBlock(void){void(^x)(void)=^(void){__attribute__((musttail))returnTestObjcBlock();// expected-error{{'musttail' attribute cannot be used from a block}}
};__attribute__((musttail))returnx();}voidReturnsVoid(void);voidTestObjcBlockVar(void){
__block int i =0;// expected-note{{jump exits scope of __block variable}}
__attribute__((musttail))returnReturnsVoid();// expected-error{{cannot perform a tail call from this return statement}}
}__attribute__((objc_root_class))@interfaceTestObjcClass@end@implementationTestObjcClass- (void)testObjCMethod{__attribute__((musttail))returnReturnsVoid();// expected-error{{'musttail' attribute cannot be used from an Objective-C function}}
}@end