brintos

brintos / llvm-project-archived public Read only

0
0
Text · 455 B · 988e1bf Raw
17 lines · plain
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.cpp2// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp3 4typedef void (^b_t)(void);5void a(b_t work) { }6struct _s {7    int a;8};9struct _s *r(void);10 11void f(void) {12    __block struct _s *s = 0;13    a(^{14        s = (struct _s *)r();15    });16}17