[PATCH] D135012: [clang][Interp] Implement bitwise and operations

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 4 08:28:35 PDT 2022


tbaeder added inline comments.


================
Comment at: clang/test/AST/Interp/literals.cpp:289
+  static_assert((1337 & -1) == 1337, "");
+  static_assert((0 & gimme(12)) == 0, "");
+};
----------------
shafik wrote:
> Why `gimme(12)` and not just `12`?
I just thought it might be useful to test something that's not a literal.


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

https://reviews.llvm.org/D135012



More information about the cfe-commits mailing list