tree-sitter-objc/examples/SemaObjC/block-return.m

15 lines
401 B
Mathematica
Raw Normal View History

2022-04-16 15:58:26 +00:00
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s
// expected-no-diagnostics
// 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];
};
}