diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/fixits/main.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/expression_command/fixits/main.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/fixits/main.cpp b/lldb/packages/Python/lldbsuite/test/expression_command/fixits/main.cpp new file mode 100644 index 00000000000..371d8333763 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/fixits/main.cpp @@ -0,0 +1,25 @@ +#include <stdio.h> + +struct SubStruct +{ + int a; + int b; +}; + +struct MyStruct +{ + int first; + struct SubStruct second; +}; + +int +main() +{ + struct MyStruct my_struct = {10, {20, 30}}; + struct MyStruct *my_pointer = &my_struct; + printf ("Stop here to evaluate expressions: %d %d %p\n", my_pointer->first, my_pointer->second.a, my_pointer); + return 0; +} + + + |