aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/API/python_api')
-rw-r--r--lldb/test/API/python_api/type/main.cpp7
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 {};