]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/expression_command/fixits/main.cpp
Vendor import of lldb release_39 branch r276489:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / expression_command / fixits / main.cpp
1 #include <stdio.h>
2
3 struct SubStruct
4 {
5   int a;
6   int b;
7 };
8
9 struct MyStruct
10 {
11   int first;
12   struct SubStruct second;
13 };
14
15 int
16 main()
17 {
18   struct MyStruct my_struct = {10, {20, 30}};
19   struct MyStruct *my_pointer = &my_struct;
20   printf ("Stop here to evaluate expressions: %d %d %p\n", my_pointer->first, my_pointer->second.a, my_pointer);
21   return 0;
22 }
23
24
25