Home | History | Annotate | Download | only in Rewriter
      1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
      2 // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
      3 // rdar://11230308
      4 
      5 typedef struct {
      6     char byte0;
      7     char byte1;
      8 } CFUUIDBytes;
      9 
     10 void x(void *);
     11 
     12 void y() {
     13     __block CFUUIDBytes bytes;
     14     
     15     void (^bar)() = ^{
     16         x(&bytes);
     17     };
     18 }
     19 
     20 // rdar://11236342
     21 int foo() {
     22     __block int hello;
     23 }
     24