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 |
15 | { |
16 | int ; |
17 | float ; |
18 | char ; |
19 | double ; |
20 | long ; |
21 | short ; |
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 = {.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 | |