diff options
| author | David Spickett <david.spickett@linaro.org> | 2025-07-17 14:22:51 +0000 |
|---|---|---|
| committer | David Spickett <david.spickett@linaro.org> | 2025-07-17 14:24:05 +0000 |
| commit | 756e07734b4f2aa64bd1bd5b6a29389c4c642323 (patch) | |
| tree | 80021860449f527f9e1a8cd350429eb3db2c7f26 /lldb/test/API/python_api | |
| parent | 577585198637fc2ced2a4fdf20f91c58fb74c717 (diff) | |
| download | llvm-756e07734b4f2aa64bd1bd5b6a29389c4c642323.tar.gz llvm-756e07734b4f2aa64bd1bd5b6a29389c4c642323.tar.bz2 llvm-756e07734b4f2aa64bd1bd5b6a29389c4c642323.zip | |
[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.
Diffstat (limited to 'lldb/test/API/python_api')
| -rw-r--r-- | lldb/test/API/python_api/type/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 <unsigned Value> struct PointerInfo { }; template <unsigned Value, typename InfoType = PointerInfo<Value>> -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 {}; |
