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

Anutosh Bhat via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 26 07:02:35 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();
----------------
anutosh491 wrote:

Shall shift it there if that's what is needed 

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


More information about the cfe-commits mailing list