case DW_TAG_union_type:
return not heap_area_equal_without_type(state, real_area1, real_area2, snapshot1, snapshot2, previous,
type->byte_size, check_ignore);
+
+ default:
+ XBT_VERB("Unknown case: %d", type->type);
+ break;
}
return 0;
}
int x = MC_random(0, 5);
int y = MC_random(0, 5);
- switch (behavior) {
- case ABORT:
- abort();
- case ASSERT:
- MC_assert(x != 3 || y != 4);
- break;
- case PRINTF:
- if (x == 3 && y == 4)
- XBT_ERROR("Error reached");
- break;
+ if (behavior == ASSERT) {
+ MC_assert(x != 3 || y != 4);
+ } else if (behavior == PRINTF) {
+ if (x == 3 && y == 4)
+ XBT_ERROR("Error reached");
+ } else { // behavior == ABORT
+ abort();
}
}