mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 08:48:12 +00:00
79708b54f2
This is still breaking greendragon. At this point I give up until someone can fix the greendragon bots, and I will probably abandon this effort in favor of using a private github repository. llvm-svn: 318722
33 lines
571 B
Objective-C
33 lines
571 B
Objective-C
// RUN: %clang %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o
|
|
// RUN: %clang %target_itanium_abi_host_triple %t.o -o %t.out -framework Foundation
|
|
// RUN: %test_debuginfo %s %t.out
|
|
|
|
// REQUIRES: system-darwin
|
|
|
|
// DEBUGGER: break 24
|
|
// DEBUGGER: r
|
|
// DEBUGGER: p result
|
|
// CHECK: ${{[0-9]}} = 42
|
|
|
|
void doBlock(void (^block)(void))
|
|
{
|
|
block();
|
|
}
|
|
|
|
int I(int n)
|
|
{
|
|
__block int result;
|
|
int i = 2;
|
|
doBlock(^{
|
|
result = n;
|
|
});
|
|
return result + i; /* Check value of 'result' */
|
|
}
|
|
|
|
|
|
int main (int argc, const char * argv[]) {
|
|
return I(42);
|
|
}
|
|
|
|
|