| Blaine Garst | 86d0ba4 | 2010-08-04 23:34:21 +0000 | [diff] [blame] | 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 |  | 
 | 9 | // CONFIG C | 
 | 10 |  | 
 | 11 | #include <stdio.h> | 
 | 12 | #include <Block_private.h> | 
 | 13 |  | 
 | 14 |  | 
 | 15 | int main(int argc, char *argv[]) { | 
 | 16 |     void (^inner)(void) = ^ { printf("argc was %d\n", argc); }; | 
 | 17 |     void (^outer)(void) = ^{ | 
 | 18 |           inner(); | 
 | 19 |           inner(); | 
 | 20 |      }; | 
 | 21 |      //printf("size of inner is %ld\n", Block_size(inner)); | 
 | 22 |      //printf("size of outer is %ld\n", Block_size(outer)); | 
 | 23 |      if (Block_size(inner) != Block_size(outer)) { | 
 | 24 |         printf("not the same size, using old compiler??\n"); | 
 | 25 |         return 1; | 
 | 26 |     } | 
 | 27 |     printf("%s: Success\n", argv[0]); | 
 | 28 |     return 0; | 
 | 29 | } |