brintos

brintos / llvm-project-archived public Read only

0
0
Text · 482 B · fb29d9f Raw
19 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 -Wno-address-of-temporary -D__block="" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp3 4void x(int y) {}5void f() {6    const int bar = 3;7    int baz = 4;8    __block int bab = 4;9    __block const int bas = 5;10    void (^b)() = ^{11        x(bar);12        x(baz);13	x(bab);14	x(bas);15	b();16    };    17    b();18}19