[ELF] Avoid make in elf::writeARMCmseImportLib
[llvm-project.git] / clang / test / CodeGenCXX / reference-in-block-args.cpp
blob41f142afd5430bbb3d689d2ee61da8e332f5dfd7
1 // RUN: %clang_cc1 -fblocks %s -emit-llvm -o %t
3 extern "C" int printf(const char*, ...);
5 struct ST {
6 int filler;
7 int referrer;
8 };
10 void OUTER_BLOCK(void (^fixer)(ST& ref)) {
11 ST ref = {2, 100};
12 fixer(ref);
15 void INNER_BLOCK(int (^largeDo) ()) {
16 printf("%d\n", largeDo());
19 void scan() {
20 OUTER_BLOCK(^(ST &ref) {
21 INNER_BLOCK(^() { return ref.referrer + ref.filler; });
22 });
26 int main() {
27 scan();