[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / constexpr-unsigned-high-bit.cpp
blob19d8dcab6607388336e6124780c16d535c572547
1 // RUN: %clang_cc1 -std=c++14 -fsyntax-only %s
3 #include <limits.h>
5 constexpr unsigned inc() {
6 unsigned i = INT_MAX;
7 ++i; // should not warn value is outside range
8 return i;
11 constexpr unsigned dec() {
12 unsigned i = INT_MIN;
13 --i; // should not warn value is outside range
14 return i;