[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Rewriter / rewrite-block-argument.m
blobdbcd237f0f5c62ac8b10c2cf6303509b3557c557
1 // RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" -emit-llvm -o %t %t-rw.cpp
4 void *sel_registerName(const char *);
6 @interface Test {
8 @end
10 @implementation Test
12 - (void)enumerateProvidersWithBlock:(void (^)(void))block {
13     block();
16 - (void)providerEnumerator {
17     ^(void (^providerBlock)(void)) {
18         [self enumerateProvidersWithBlock:providerBlock];
19     };
22 - (void)testNilBlock {
23     [self enumerateProvidersWithBlock:0];
26 @end
30 int main(int argc, char *argv[]) {
31     return 0;