1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-31 16:02:52 +01:00
llvm-mirror/test/FrontendC++/2009-06-30-ByrefBlock.cpp
2009-07-06 15:36:23 +00:00

12 lines
340 B
C++

// Insure __block_holder_tmp is allocated on the stack. Darwin only.
// RUN: %llvmgxx %s -S -O2 -o - | egrep {__block_holder_tmp.*alloca}
// XFAIL: *
// XTARGET: darwin
// <rdar://problem/5865221>
// END.
extern void fubar_dispatch_sync(void (^PP)(void));
void fubar() {
__block void *voodoo;
fubar_dispatch_sync(^(void){voodoo=0;});
}