18c1441f8SAlexey Samsonov // 2*2946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 3*2946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 4*2946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 58c1441f8SAlexey Samsonov 68c1441f8SAlexey Samsonov 78c1441f8SAlexey Samsonov 88c1441f8SAlexey Samsonov // CONFIG C 98c1441f8SAlexey Samsonov 108c1441f8SAlexey Samsonov #include <stdio.h> 118c1441f8SAlexey Samsonov #include <Block_private.h> 128c1441f8SAlexey Samsonov 138c1441f8SAlexey Samsonov main(int argc,char * argv[])148c1441f8SAlexey Samsonovint main(int argc, char *argv[]) { 158c1441f8SAlexey Samsonov void (^inner)(void) = ^ { printf("argc was %d\n", argc); }; 168c1441f8SAlexey Samsonov void (^outer)(void) = ^{ 178c1441f8SAlexey Samsonov inner(); 188c1441f8SAlexey Samsonov inner(); 198c1441f8SAlexey Samsonov }; 208c1441f8SAlexey Samsonov //printf("size of inner is %ld\n", Block_size(inner)); 218c1441f8SAlexey Samsonov //printf("size of outer is %ld\n", Block_size(outer)); 228c1441f8SAlexey Samsonov if (Block_size(inner) != Block_size(outer)) { 238c1441f8SAlexey Samsonov printf("not the same size, using old compiler??\n"); 248c1441f8SAlexey Samsonov return 1; 258c1441f8SAlexey Samsonov } 268c1441f8SAlexey Samsonov printf("%s: Success\n", argv[0]); 278c1441f8SAlexey Samsonov return 0; 288c1441f8SAlexey Samsonov } 29