Fix a case where ScalarEvolution was expanding pointer arithmetic
[oota-llvm.git] / test / FrontendC++ / 2009-06-30-ByrefBlock.cpp
1 // Insure __block_holder_tmp is allocated on the stack.  Darwin only.
2 // RUN: %llvmgxx %s -S -O2 -o - | egrep {__block_holder_tmp.*alloca}
3 // XFAIL: *
4 // XTARGET: darwin
5 // <rdar://problem/5865221>
6 // END.
7 extern void fubar_dispatch_sync(void (^PP)(void));
8 void fubar() {
9   __block void *voodoo;
10  fubar_dispatch_sync(^(void){voodoo=0;});
11 }