1*3234887fSJoel E. Denny // RUN: %clang_cc1 -std=c++14 -fsyntax-only %s 2*3234887fSJoel E. Denny 3*3234887fSJoel E. Denny #include <limits.h> 4*3234887fSJoel E. Denny inc()5*3234887fSJoel E. Dennyconstexpr unsigned inc() { 6*3234887fSJoel E. Denny unsigned i = INT_MAX; 7*3234887fSJoel E. Denny ++i; // should not warn value is outside range 8*3234887fSJoel E. Denny return i; 9*3234887fSJoel E. Denny } 10*3234887fSJoel E. Denny dec()11*3234887fSJoel E. Dennyconstexpr unsigned dec() { 12*3234887fSJoel E. Denny unsigned i = INT_MIN; 13*3234887fSJoel E. Denny --i; // should not warn value is outside range 14*3234887fSJoel E. Denny return i; 15*3234887fSJoel E. Denny } 16