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 /*
      8  *  orbars.c
      9  *  testObjects
     10  *
     11  *  Created by Blaine Garst on 9/17/08.
     12  *
     13  *  CONFIG rdar://6276695 error: before | token
     14  */
     15 
     16 #include <stdio.h>
     17 
     18 int main(int argc, char *argv[]) {
     19     int i = 10;
     20     void (^b)(void) = ^(void){ | i | printf("hello world, %d\n", ++i); };
     21     printf("%s: success :-(\n", argv[0]);
     22     return 0;
     23 }
     24