]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/python_api/formatters/main.cpp
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / python_api / formatters / main.cpp
1 #include <stdio.h>
2 #include <vector>
3
4 struct JustAStruct
5 {
6         int A;
7         float B;
8         char C;
9         double D;
10         long E;
11         short F;
12 };
13
14 struct FooType
15 {
16         int A;
17         float B;
18         char C;
19         double D;
20         long E;
21         short F;
22 };
23
24 struct CCC
25 {
26         int a, b, c;
27 };
28
29 struct Empty1 { void *data; };
30 struct Empty2 { void *data; };
31
32
33 int main(int argc, char const *argv[]) {
34         JustAStruct foo;
35         foo.A = 1;
36         foo.B = 3.14;
37         foo.C = 'e';
38         foo.D = 6.28;
39         foo.E = 3100419850;
40         foo.F = 0;
41
42         FooType bar;
43         bar.A = 1;
44         bar.B = 3.14;
45         bar.C = 'e';
46         bar.D = 6.28;
47         bar.E = 3100419850;
48         bar.F = 0;
49         JustAStruct* foo_ptr = &foo;
50
51         std::vector<int> int_vector;
52
53         CCC ccc = {111, 222, 333};
54
55         Empty1 e1;
56         Empty2 e2;
57
58         return 0; // Set break point at this line.
59 }