brintos

brintos / llvm-project-archived public Read only

0
0
Text · 417 B · ceaad4c Raw
29 lines · c
1#include "foo.h"2 3void foo_func(int param1) {4  int local_var = global_var;5  for (int for_var = 100; for_var < 500; ++for_var) {6    local_var = param1 + for_var;7  }8  bar_func();9}10 11struct S1 {12  int x;13};14 15struct S2 {16  int x;17};18 19void field_test(void) {20  struct S1 s1;21  s1.x = 0;22  ((struct S2 *)0)->x = 0;23  24  struct MyStruct ms;25  ms.field_var = 10;26}27 28int (^CP)(int) = ^(int x) { return x * global_var; };29