From 756e07734b4f2aa64bd1bd5b6a29389c4c642323 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Thu, 17 Jul 2025 14:22:51 +0000 Subject: [lldb][test] Adjust TestTypeList.py on Windows with exceptions Since https://github.com/llvm/llvm-project/pull/148691 enabled exceptions when compiling the tests, this test has been failing. Much like was noted there, one of the variables disappeared from the debug info. Giving it a non-zero size and initialising it fixed that. --- lldb/test/API/python_api/type/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lldb/test/API/python_api') diff --git a/lldb/test/API/python_api/type/main.cpp b/lldb/test/API/python_api/type/main.cpp index 6acde5bb666a..449f77db0d75 100644 --- a/lldb/test/API/python_api/type/main.cpp +++ b/lldb/test/API/python_api/type/main.cpp @@ -44,7 +44,12 @@ template struct PointerInfo { }; template > -struct Pointer {}; +struct Pointer { + // When compiling for Windows with exceptions enabled, this struct + // must contain something that takes space and is initialised. + // Otherwise it will not be present in the debug information. + int pad = 0; +}; enum EnumType {}; enum class ScopedEnumType {}; -- cgit v1.2.3