mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 17:37:24 +00:00
9 lines
287 B
C++
9 lines
287 B
C++
|
// Insure __block_holder_tmp is allocated on the stack.
|
||
|
// RUN: %llvmgxx %s -S -O2 -o - | egrep {__block_holder_tmp.*alloca}
|
||
|
// <rdar://problem/5865221>
|
||
|
extern void fubar_dispatch_sync(void (^PP)(void));
|
||
|
void fubar() {
|
||
|
__block void *voodoo;
|
||
|
fubar_dispatch_sync(^(void){voodoo=0;});
|
||
|
}
|