mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
9cc8fa72a3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74829 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
340 B
C++
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;});
|
|
}
|