xref: /aosp_15_r20/external/compiler-rt/test/BlocksRuntime/modglobal.c (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1*7c3d14c8STreehugger Robot //
2*7c3d14c8STreehugger Robot //                     The LLVM Compiler Infrastructure
3*7c3d14c8STreehugger Robot //
4*7c3d14c8STreehugger Robot // This file is distributed under the University of Illinois Open Source
5*7c3d14c8STreehugger Robot // License. See LICENSE.TXT for details.
6*7c3d14c8STreehugger Robot #include <stdio.h>
7*7c3d14c8STreehugger Robot 
8*7c3d14c8STreehugger Robot // CONFIG
9*7c3d14c8STreehugger Robot 
10*7c3d14c8STreehugger Robot int AGlobal;
11*7c3d14c8STreehugger Robot 
main(int argc,char * argv[])12*7c3d14c8STreehugger Robot int main(int argc, char *argv[]) {
13*7c3d14c8STreehugger Robot     void (^f)(void) = ^ { AGlobal++; };
14*7c3d14c8STreehugger Robot 
15*7c3d14c8STreehugger Robot     printf("%s: success\n", argv[0]);
16*7c3d14c8STreehugger Robot     return 0;
17*7c3d14c8STreehugger Robot 
18*7c3d14c8STreehugger Robot }
19