Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s
      2 // expected-no-diagnostics
      3 // rdar://8979379
      4 
      5 @interface NSString
      6 - (__attribute__((objc_gc(strong))) const char *)UTF8String;
      7 @end
      8 
      9 int main() {
     10 __attribute__((objc_gc(strong))) char const *(^libraryNameForIndex)() = ^() {
     11         NSString *moduleName;
     12         return [moduleName UTF8String];
     13     };
     14 }
     15