[clang] [NFC][Clang] Fix test constexpr-function-recovery-crash.cpp (PR #65269)
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 5 08:02:38 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 + {{}}
----------------
sam-mccall wrote:
oops, yes, the intent was to check For here
https://github.com/llvm/llvm-project/pull/65269
More information about the cfe-commits
mailing list