[PATCH] D149816: [clang][Interp] Implement __builtin_strcmp

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 11 17:34:36 PDT 2023


shafik added inline comments.


================
Comment at: clang/test/AST/Interp/builtin-functions.cpp:8
+
+  static_assert(__builtin_strcmp("abab", "abab") == 0);
+  static_assert(__builtin_strcmp("abab", "abba") == -1);
----------------
Both empty strings `""` would be good as well.


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

https://reviews.llvm.org/D149816



More information about the cfe-commits mailing list