test_assert_null.cocci 131 B

1234567891011
  1. @@
  2. expression * e;
  3. @@
  4. (
  5. - tt_assert(e != NULL)
  6. + tt_ptr_op(e, OP_NE, NULL)
  7. |
  8. - tt_assert(e == NULL)
  9. + tt_ptr_op(e, OP_EQ, NULL)
  10. )