[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 26 03:36:44 PST 2025


================
@@ -114,6 +114,13 @@ TEST_F(InterpreterTest, Errors) {
 
   RecoverErr = Interp->Parse("var1 = 424;");
   EXPECT_TRUE(!!RecoverErr);
+
+  Err = Interp->Parse("int x = 5; auto capture = [&]() { return x * 2; };").takeError();
----------------
vgvassilev wrote:

Can we move this test perhaps somewhere in `test/Interpreter/lambda.cpp`?

https://github.com/llvm/llvm-project/pull/127467


More information about the cfe-commits mailing list