1#include <stdio.h>
2#include <vector>
3
4struct JustAStruct
5{
6 int A;
7 float B;
8 char C;
9 double D;
10 long E;
11 short F;
12};
13
14struct FooType
15{
16 int A;
17 float B;
18 char C;
19 double D;
20 long E;
21 short F;
22};
23
24struct CCC
25{
26 int a, b, c;
27};
28
29struct Empty1 { void *data; };
30struct Empty2 { void *data; };
31
32
33int 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 = {.a: 111, .b: 222, .c: 333};
54
55 Empty1 e1;
56 Empty2 e2;
57
58 return 0; // Set break point at this line.
59}
60

source code of lldb/test/API/python_api/formatters/main.cpp