brintos

brintos / llvm-project-archived public Read only

0
0
Text · 356 B · 99e870f Raw
14 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks %s2// RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fobjc-arc %s3// expected-no-diagnostics4 5struct X {6  __unsafe_unretained id object;7  int (^ __unsafe_unretained block)(int, int);8};9 10void f(struct X x) {11  x.object = 0;12  x.block = ^(int x, int y) { return x + y; };13}14