brintos

brintos / llvm-project-archived public Read only

0
0
Text · 343 B · bef09c2 Raw
18 lines · cpp
1int main(int argc, char const *argv[]) {2  // Test for data breakpoint3  int x = 0;4  int arr[4] = {1, 2, 3, 4};5  for (int i = 0; i < 5; ++i) { // first loop breakpoint6    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 breakpoint15    ++x;16  }17}18