[all-commits] [llvm/llvm-project] 2fc191: [libc] Check signs instead of values in memcmp uni...

ChennngWang via All-commits all-commits at lists.llvm.org
Fri Sep 10 03:35:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fc1913505e3d5f48b3d5d84ce372a34e661fc7e
      https://github.com/llvm/llvm-project/commit/2fc1913505e3d5f48b3d5d84ce372a34e661fc7e
  Author: Cheng Wang <chennngwang at gmail.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M libc/test/src/string/memcmp_test.cpp

  Log Message:
  -----------
  [libc] Check signs instead of values in memcmp unittests.

The C standard only guarantees the sign of return value. The exact return
value is implementation defined.

Reviewed By: gchatelet

Differential Revision: https://reviews.llvm.org/D109588




More information about the All-commits mailing list