Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / blocks-5.m
blobe46b891074e48316f921f21322586a06bdac35a5
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -fblocks -o %t %s
3 @interface IDEWorkspaceDocument 
5   id _defaultEditorStateTree;
7 - (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, unsigned char *stop))block ;
8 @end
12 int foo(void);
13 extern void DVT (volatile const void * object, volatile const void * selector, const char * functionName); 
14 @implementation IDEWorkspaceDocument
16 - (void)stateSavingDefaultEditorStatesForURLs {
17  [_defaultEditorStateTree enumerateKeysAndObjectsUsingBlock:^(id identifier, id urlsToEditorStates, unsigned char *stop) {
18   do{ 
19 if (foo() ) 
20   DVT(&self,&_cmd,__PRETTY_FUNCTION__);
22 }while(0); 
24   do{ 
25        DVT(&self,&_cmd,__PRETTY_FUNCTION__);
26     }while(0); 
29  }];
33 - (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, unsigned char *stop))block {}
35 @end