label corresponds to the condition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374954
91177308-0d34-0410-b5e6-
96231b3b80d8
}
if (!Found)
- return Scope.destroy() ? ESR_Failed : ESR_Succeeded;
+ return Scope.destroy() ? ESR_Succeeded : ESR_Failed;
// Search the switch body for the switch case and evaluate it from there.
EvalStmtResult ESR = EvaluateStmt(Result, Info, SS->getBody(), Found);
}
namespace switch_stmt {
+ constexpr bool no_such_case(int n) {
+ switch (n) { case 1: return false; }
+ return true;
+ }
+ static_assert(no_such_case(0), "");
+
constexpr int f(char k) {
bool b = false;
int z = 6;