Skip to content

Commit 5f9b96c

Browse files
committed
C++: Fix off-by-one in test annotation
1 parent f414b27 commit 5f9b96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/test/library-tests/dataflow/fields/complex.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ void bar(Outer &b)
4848
// in _some_ access path somewhere in the search. That makes the library conclude
4949
// that there could be flow to `b.inner.f.a_` even when the flow was actually to
5050
// `b.inner.f.b_`.
51-
sink(b.inner.f.a()); // $ast=flow 61:19 $f+:ast=flow 62:19 $ast=flow 63:19 $f+:ast=flow 64:19 $f-:ir=flow
52-
sink(b.inner.f.b()); // $f+:ast=flow 61:19 $ast=flow 62:19 $f+:ast=flow 63:19 $ast=flow 64:19 $f-:ir=flow
51+
sink(b.inner.f.a()); // $ast=flow 62:19 $f+:ast=flow 63:19 $ast=flow 64:19 $f+:ast=flow 65:19 $f-:ir=flow
52+
sink(b.inner.f.b()); // $f+:ast=flow 62:19 $ast=flow 63:19 $f+:ast=flow 64:19 $ast=flow 65:19 $f-:ir=flow
5353
}
5454

5555
void foo()

0 commit comments

Comments
 (0)