Home | History | Annotate | Download | only in Rewriter
      1 // RUN: %clang_cc1 -fblocks -triple i386-apple-darwin9 -fobjc-gc -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o -
      2 
      3 #define nil 0
      4 int main() {
      5         __weak __block id foo = nil;
      6         __block id foo2 = nil;
      7         id foo3 = nil;
      8 
      9         void (^myblock)() = ^{
     10                 foo = nil;
     11                 foo2 = nil;
     12                 [foo3 bar];
     13                 id foo4 = foo3;
     14         };
     15 }
     16