fix_cocci_output_test.c 369 B

1234567891011121314151617181920212223
  1. struct starpu_codelet cl =
  2. {
  3. .where = STARPU_CPU,
  4. /* => .modes = { STARPU_R, STARPU_W }, */
  5. .modes[1] = STARPU_W,
  6. .modes[0] = STARPU_R,
  7. .cpu_func = foo
  8. };
  9. static void
  10. foo(void)
  11. {
  12. struct starpu_codelet cl =
  13. {
  14. .where = STARPU_CPU,
  15. /* .modes = { STARPU_R, STARPU_RW, STARPU_W } */
  16. .modes[2] = STARPU_W,
  17. .modes[1] = STARPU_RW,
  18. .modes[0] = STARPU_R
  19. };
  20. }