Skip to content

Commit cfcf087

Browse files
committed
C++: Add comment explaining buggy value number
1 parent 4f27750 commit cfcf087

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/library-tests/valuenumbering/GlobalValueNumbering

1 file changed

+1
-1
lines changed

cpp/ql/test/library-tests/valuenumbering/GlobalValueNumbering/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int test03(int p0, int p1, int* p2) {
4242

4343
x = p0 + p1 + global03;
4444
*p2 = 0; // Might change global03
45-
x = p0 + p1 + global03; // Not the same value
45+
x = p0 + p1 + global03; // BUG: Not the same value, but given the same value number (this is likely due to #2696)
4646
y = x;
4747
}
4848

0 commit comments

Comments
 (0)