t1.c 417 B

12345678910111213141516171819202122232425262728
  1. #include "foo.h"
  2. void foo_func(int param1) {
  3. int local_var = global_var;
  4. for (int for_var = 100; for_var < 500; ++for_var) {
  5. local_var = param1 + for_var;
  6. }
  7. bar_func();
  8. }
  9. struct S1 {
  10. int x;
  11. };
  12. struct S2 {
  13. int x;
  14. };
  15. void field_test(void) {
  16. struct S1 s1;
  17. s1.x = 0;
  18. ((struct S2 *)0)->x = 0;
  19. struct MyStruct ms;
  20. ms.field_var = 10;
  21. }
  22. int (^CP)(int) = ^(int x) { return x * global_var; };