33 lines · plain
1// RUN: %clang %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o2// RUN: %clang %target_itanium_abi_host_triple %t.o -o %t.out -framework Foundation3// RUN: %test_debuginfo %s %t.out 4 5// REQUIRES: system-darwin6 7// DEBUGGER: break 248// DEBUGGER: r9// DEBUGGER: p result10// CHECK: ${{[0-9]}} = 4211 12void doBlock(void (^block)(void))13{14 block();15}16 17int I(int n)18{19 __block int result;20 int i = 2;21 doBlock(^{22 result = n;23 });24 return result + i; /* Check value of 'result' */25}26 27 28int main (int argc, const char * argv[]) {29 return I(42);30}31 32 33