xref: /aosp_15_r20/external/compiler-rt/test/BlocksRuntime/c99.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 
7*7c3d14c8STreehugger Robot //
8*7c3d14c8STreehugger Robot //  c99.m
9*7c3d14c8STreehugger Robot //
10*7c3d14c8STreehugger Robot // CONFIG C99 rdar://problem/6399225
11*7c3d14c8STreehugger Robot 
12*7c3d14c8STreehugger Robot #import <stdio.h>
13*7c3d14c8STreehugger Robot #import <stdlib.h>
14*7c3d14c8STreehugger Robot 
main(int argc,char * argv[])15*7c3d14c8STreehugger Robot int main(int argc, char *argv[]) {
16*7c3d14c8STreehugger Robot     void (^blockA)(void) = ^ { ; };
17*7c3d14c8STreehugger Robot     blockA();
18*7c3d14c8STreehugger Robot     printf("%s: success\n", argv[0]);
19*7c3d14c8STreehugger Robot     exit(0);
20*7c3d14c8STreehugger Robot }
21