[Sanitizer] Add rudimentary support for wide-character strings to scanf/printf interc...
[blocksruntime.git] / test / BlocksRuntime / hasdescriptor.c
blob429adb9bdb14c86e9fab5374ae843e61a373d2be
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.
9 // CONFIG C
11 #include <stdio.h>
12 #include <Block_private.h>
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();
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;
27 printf("%s: Success\n", argv[0]);
28 return 0;