fix_cocci_output_test.c 366 B

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