1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-fragile-abi -emit-llvm -fblocks -o %t %s 2 3 // rdar: // 8064140 4 5 @interface IDEWorkspaceDocument 6 { 7 id _defaultEditorStateTree; 8 } 9 - (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, unsigned char *stop))block ; 10 @end 11 12 13 14 int foo(); 15 extern void DVT (volatile const void * object, volatile const void * selector, const char * functionName); 16 @implementation IDEWorkspaceDocument 17 18 - (void)stateSavingDefaultEditorStatesForURLs { 19 [_defaultEditorStateTree enumerateKeysAndObjectsUsingBlock:^(id identifier, id urlsToEditorStates, unsigned char *stop) { 20 do{ 21 if (foo() ) 22 DVT(&self,&_cmd,__PRETTY_FUNCTION__); 23 24 }while(0); 25 26 do{ 27 DVT(&self,&_cmd,__PRETTY_FUNCTION__); 28 }while(0); 29 30 31 }]; 32 33 } 34 35 - (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, unsigned char *stop))block {} 36 37 @end 38