Lines Matching refs:check_one_size_helper
663 #define check_one_size_helper(expected, func, args...) do { \ in overflow_size_helpers_test() macro
672 check_one_size_helper(20, size_mul, var++, 5); in overflow_size_helpers_test()
673 check_one_size_helper(20, size_mul, 4, var++); in overflow_size_helpers_test()
674 check_one_size_helper(0, size_mul, 0, 3); in overflow_size_helpers_test()
675 check_one_size_helper(0, size_mul, 3, 0); in overflow_size_helpers_test()
676 check_one_size_helper(6, size_mul, 2, 3); in overflow_size_helpers_test()
677 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1); in overflow_size_helpers_test()
678 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3); in overflow_size_helpers_test()
679 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3); in overflow_size_helpers_test()
682 check_one_size_helper(9, size_add, var++, 5); in overflow_size_helpers_test()
683 check_one_size_helper(9, size_add, 4, var++); in overflow_size_helpers_test()
684 check_one_size_helper(9, size_add, 9, 0); in overflow_size_helpers_test()
685 check_one_size_helper(9, size_add, 0, 9); in overflow_size_helpers_test()
686 check_one_size_helper(5, size_add, 2, 3); in overflow_size_helpers_test()
687 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1); in overflow_size_helpers_test()
688 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3); in overflow_size_helpers_test()
689 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3); in overflow_size_helpers_test()
692 check_one_size_helper(1, size_sub, var--, 3); in overflow_size_helpers_test()
693 check_one_size_helper(1, size_sub, 4, var--); in overflow_size_helpers_test()
694 check_one_size_helper(1, size_sub, 3, 2); in overflow_size_helpers_test()
695 check_one_size_helper(9, size_sub, 9, 0); in overflow_size_helpers_test()
696 check_one_size_helper(SIZE_MAX, size_sub, 9, -3); in overflow_size_helpers_test()
697 check_one_size_helper(SIZE_MAX, size_sub, 0, 9); in overflow_size_helpers_test()
698 check_one_size_helper(SIZE_MAX, size_sub, 2, 3); in overflow_size_helpers_test()
699 check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 0); in overflow_size_helpers_test()
700 check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 10); in overflow_size_helpers_test()
701 check_one_size_helper(SIZE_MAX, size_sub, 0, SIZE_MAX); in overflow_size_helpers_test()
702 check_one_size_helper(SIZE_MAX, size_sub, 14, SIZE_MAX); in overflow_size_helpers_test()
703 check_one_size_helper(SIZE_MAX - 2, size_sub, SIZE_MAX - 1, 1); in overflow_size_helpers_test()
704 check_one_size_helper(SIZE_MAX - 4, size_sub, SIZE_MAX - 1, 3); in overflow_size_helpers_test()
705 check_one_size_helper(1, size_sub, SIZE_MAX - 1, -3); in overflow_size_helpers_test()
708 check_one_size_helper(4 * sizeof(*obj->data), in overflow_size_helpers_test()
710 check_one_size_helper(5 * sizeof(*obj->data), in overflow_size_helpers_test()
712 check_one_size_helper(0, flex_array_size, obj, data, 0 + unconst); in overflow_size_helpers_test()
713 check_one_size_helper(sizeof(*obj->data), in overflow_size_helpers_test()
715 check_one_size_helper(7 * sizeof(*obj->data), in overflow_size_helpers_test()
717 check_one_size_helper(SIZE_MAX, in overflow_size_helpers_test()
719 check_one_size_helper(SIZE_MAX, in overflow_size_helpers_test()
723 check_one_size_helper(sizeof(*obj) + (4 * sizeof(*obj->data)), in overflow_size_helpers_test()
725 check_one_size_helper(sizeof(*obj) + (5 * sizeof(*obj->data)), in overflow_size_helpers_test()
727 check_one_size_helper(sizeof(*obj), struct_size, obj, data, 0 + unconst); in overflow_size_helpers_test()
728 check_one_size_helper(sizeof(*obj) + sizeof(*obj->data), in overflow_size_helpers_test()
730 check_one_size_helper(SIZE_MAX, in overflow_size_helpers_test()
732 check_one_size_helper(SIZE_MAX, in overflow_size_helpers_test()
736 #undef check_one_size_helper in overflow_size_helpers_test()