2011-02-12 02:46:17 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2011-02-12 02:46:17 +08:00
|
|
|
// rdar://8979379
|
|
|
|
|
|
|
|
@interface NSString
|
|
|
|
- (__attribute__((objc_gc(strong))) const char *)UTF8String;
|
|
|
|
@end
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
__attribute__((objc_gc(strong))) char const *(^libraryNameForIndex)() = ^() {
|
|
|
|
NSString *moduleName;
|
|
|
|
return [moduleName UTF8String];
|
|
|
|
};
|
|
|
|
}
|