Skip to content

Commit ef601cf

Browse files
committed
C++: Annotate changes in struct_init.c test
1 parent 655f940 commit ef601cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/test/library-tests/dataflow/fields/struct_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct Outer {
1212
};
1313

1414
void absink(struct AB *ab) {
15-
sink(ab->a); // flow x3 [NOT DETECTED]
15+
sink(ab->a); // flow (three paths)
1616
sink(ab->b); // no flow
1717
}
1818

@@ -30,7 +30,7 @@ int struct_init(void) {
3030

3131
sink(outer.nestedAB.a); // flow
3232
sink(outer.nestedAB.b); // no flow
33-
sink(outer.pointerAB->a); // flow [NOT DETECTED]
33+
sink(outer.pointerAB->a); // flow
3434
sink(outer.pointerAB->b); // no flow
3535

3636
absink(&outer.nestedAB);

0 commit comments

Comments
 (0)