[PATCH] D156212: [clang][Interp] Implement remaining strcmp builtins

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 26 13:41:31 PDT 2023


shafik added inline comments.


================
Comment at: clang/test/AST/Interp/builtin-functions.cpp:17
+  static_assert(__builtin_strncmp("abaa", "abba", 1) == 0);
+  static_assert(__builtin_strncmp("abaa", "abba", 0) == 0);
+  static_assert(__builtin_strncmp(0, 0, 0) == 0);
----------------
How about `-1` size as well.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156212/new/

https://reviews.llvm.org/D156212



More information about the cfe-commits mailing list