[PATCH] D140845: [clang][Interp] Fix left-/right-shifting more than sizeof(unsigned)

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 23 21:21:34 PST 2023


shafik added inline comments.


================
Comment at: clang/test/AST/Interp/shifts.cpp:149
+  constexpr signed int R = 62;
+  constexpr decltype(L) M = L << R;
 };
----------------
Can we add a test for left shift as well.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140845



More information about the cfe-commits mailing list