summaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2009-06-30-ByrefBlock.cpp
blob: be9c94fd176a8b1498927f2f2194d9b3339a0d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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;});
}
OpenPOWER on IntegriCloud