1 | int main(int argc, char const *argv[]) { |
---|---|
2 | // Test for data breakpoint |
3 | int x = 0; |
4 | int arr[4] = {1, 2, 3, 4}; |
5 | for (int i = 0; i < 5; ++i) { // first loop breakpoint |
6 | if (i == 1) { |
7 | x = i + 1; |
8 | } else if (i == 2) { |
9 | arr[i] = 42; |
10 | } |
11 | } |
12 | |
13 | x = 1; |
14 | for (int i = 0; i < 10; ++i) { // second loop breakpoint |
15 | ++x; |
16 | } |
17 | } |
18 |