1 | #include "foo.h" |
---|---|
2 | |
3 | #include <map> |
4 | #include <vector> |
5 | |
6 | static int static_int = 42; |
7 | |
8 | int non_static_int = 43; |
9 | |
10 | int a_function(int var) { |
11 | return var; // breakpoint 3 |
12 | } |
13 | |
14 | struct my_struct { |
15 | int foo; |
16 | }; |
17 | |
18 | int main(int argc, char const *argv[]) { |
19 | my_struct struct1 = {.foo: 15}; |
20 | my_struct *struct2 = new my_struct{.foo: 16}; |
21 | my_struct *struct3 = nullptr; |
22 | int var1 = 20; |
23 | int var2 = 21; |
24 | int var3 = static_int; // breakpoint 1 |
25 | { |
26 | int non_static_int = 10; |
27 | int var2 = 2; |
28 | int var3 = non_static_int; // breakpoint 2 |
29 | } |
30 | a_function(var: var3); |
31 | foo_func(); |
32 | |
33 | std::vector<int> my_vec; |
34 | my_vec.push_back(x: 1); |
35 | my_vec.push_back(x: 2); |
36 | my_vec.push_back(x: 3); // breakpoint 4 |
37 | |
38 | std::map<int, int> my_map; |
39 | my_map[1] = 2; |
40 | my_map[2] = 3; |
41 | my_map[3] = 4; // breakpoint 5 |
42 | |
43 | std::vector<bool> my_bool_vec; |
44 | my_bool_vec.push_back(x: true); |
45 | my_bool_vec.push_back(x: false); // breakpoint 6 |
46 | my_bool_vec.push_back(x: true); // breakpoint 7 |
47 | |
48 | return 0; |
49 | } |
50 |