Skip to content

Commit 86ab960

Browse files
committed
C++: add test comments
1 parent 681cc4c commit 86ab960

File tree

1 file changed

+3
-3
lines changed
  • cpp/ql/test/experimental/query-tests/Security/CWE/CWE-193/constant-size

1 file changed

+3
-3
lines changed

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-193/constant-size/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void testEqRefinement() {
8484

8585
for(int i = 0; i <= MAX_SIZE; i++) {
8686
if(i != MAX_SIZE) {
87-
arr[i] = 0;
87+
arr[i] = 0; // GOOD
8888
}
8989
}
9090
}
@@ -99,15 +99,15 @@ void testEqRefinement2() {
9999
if(i == MAX_SIZE) {
100100
break;
101101
}
102-
n = arr[i];
102+
n = arr[i]; // GOOD
103103
continue;
104104
}
105105

106106
if (i == MAX_SIZE || n != arr[i]) {
107107
if (i == MAX_SIZE) {
108108
break;
109109
}
110-
n = arr[i];
110+
n = arr[i]; // GOOD
111111
}
112112
}
113113
}

0 commit comments

Comments
 (0)