[clang] [NFC][Clang] Fix test constexpr-function-recovery-crash.cpp (PR #65269)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 4 08:11:45 PDT 2023
================
@@ -99,6 +99,10 @@ TEST_EVALUATE(DoWhileCond, do {} while (some_cond < 10);); // expected-error
// expected-error {{constexpr variable 'forceEvaluateDoWhileCond' must be initialized by a constant expression}}
TEST_EVALUATE(If, if (!!){};); // expected-error + {{}}
TEST_EVALUATE(IfInit, if (auto x = !!; 1){};);// expected-error + {{}}
-TEST_EVALUATE(ForInit, if (!!;;){};); // expected-error + {{}}
----------------
yronglin wrote:
I think this case was use to check `for` statement but not `if`? Apologies if there is any mistake in my understanding.
https://github.com/llvm/llvm-project/pull/65269
More information about the cfe-commits
mailing list