Home | History | Annotate | Download | only in BlocksRuntime
      1 //
      2 //                     The LLVM Compiler Infrastructure
      3 //
      4 // This file is distributed under the University of Illinois Open Source
      5 // License. See LICENSE.TXT for details.
      6 
      7 // testfilerunner CONFIG
      8 
      9 #include <stdio.h>
     10 
     11 
     12 int main(int argc, char **argv) {
     13   static int numberOfSquesals = 5;
     14 
     15   ^{ numberOfSquesals = 6; }();
     16 
     17   if (numberOfSquesals == 6) {
     18     printf("%s: success\n", argv[0]);
     19     return 0;
     20    }
     21    printf("**** did not update static local, rdar://6177162\n");
     22    return 1;
     23 
     24 }
     25 
     26