diff options
author | Nico Weber <thakis@chromium.org> | 2024-06-14 15:37:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 15:37:17 -0400 |
commit | c63b9a5af72a7d83d936c12ae4bc79828c073edf (patch) | |
tree | 7d21be0cf35d1618c3c01140b6a0a2d5b082446a /clang/unittests/Interpreter/InterpreterTest.cpp | |
parent | cc7a18c18011d1e0c70187ceb60e3e69bf7cd0ee (diff) | |
download | llvm-c63b9a5af72a7d83d936c12ae4bc79828c073edf.zip llvm-c63b9a5af72a7d83d936c12ae4bc79828c073edf.tar.gz llvm-c63b9a5af72a7d83d936c12ae4bc79828c073edf.tar.bz2 |
[clang-interp] Use -fno-sized-deallocation in two tests (#95546)
At least on my Windows machine, these two tests fail due to not being
able to look up `??3@YAXPEAX_K@Z` (which is
`void __cdecl operator delete(void *, unsigned __int64)` in demangled)
after 130e93cc26ca. Since they don't test anything related to sized
deallocation, just disable sized allocation for them.
Possibly fixes #95451.
Diffstat (limited to 'clang/unittests/Interpreter/InterpreterTest.cpp')
-rw-r--r-- | clang/unittests/Interpreter/InterpreterTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/Interpreter/InterpreterTest.cpp b/clang/unittests/Interpreter/InterpreterTest.cpp index 683295a..bbd8541 100644 --- a/clang/unittests/Interpreter/InterpreterTest.cpp +++ b/clang/unittests/Interpreter/InterpreterTest.cpp @@ -286,7 +286,8 @@ TEST_F(InterpreterTest, InstantiateTemplate) { // https://github.com/llvm/llvm-project/issues/94994. #ifndef __arm__ TEST_F(InterpreterTest, Value) { - std::unique_ptr<Interpreter> Interp = createInterpreter(); + std::vector<const char *> Args = {"-fno-sized-deallocation"}; + std::unique_ptr<Interpreter> Interp = createInterpreter(Args); Value V1; llvm::cantFail(Interp->ParseAndExecute("int x = 42;")); |