1#include <stdio.h>
2
3void BFunction()
4{
5}
6
7void AFunction()
8{
9 printf(format: "I am a function.\n");
10}
11
12int main(int argc, const char *argv[])
13{
14 int inited = 0xDEADBEEF;
15 int sum = 0;
16 if(argc > 1)
17 {
18 for(int i = 0; i < argc; i++)
19 {
20 puts(s: argv[i]);
21 }
22 if(argc > 2)
23 {
24 return argc;
25 }
26 }
27 AFunction();
28 for(int i = 1; i <= 100; i++)
29 {
30 BFunction();
31 sum += i;
32 }
33 printf(format: "sum = %d\n", sum);
34 return 0;
35}
36

source code of lldb/test/API/lua_api/main.c