Turn off memory leaks in unit test

This commit is contained in:
Benjamin Kramer 2023-09-14 13:16:09 +02:00
parent 8d5c1b4562
commit 263fc4c79a

View File

@ -75,6 +75,7 @@ export int aa = 43;
std::shared_ptr<CompilerInvocation> Invocation =
createInvocation(Args, CIOpts);
EXPECT_TRUE(Invocation);
Invocation->getFrontendOpts().DisableFree = false;
auto Buf = CIOpts.VFS->getBufferForFile("a.cppm");
EXPECT_TRUE(Buf);
@ -113,6 +114,7 @@ export int aa = 43;
std::shared_ptr<CompilerInvocation> Invocation =
createInvocation(Args, CIOpts);
EXPECT_TRUE(Invocation);
Invocation->getFrontendOpts().DisableFree = false;
CompilerInstance Clang;