Skip to content

Commit 8635b5d

Browse files
committed
C++: Add test with missing flow.
1 parent cbb9a64 commit 8635b5d

File tree

1 file changed

+7
-0
lines changed
  • cpp/ql/test/library-tests/dataflow/dataflow-tests

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,4 +1037,11 @@ namespace test_gettext {
10371037
sink(translated); // clean
10381038
indirect_sink(translated); // clean
10391039
}
1040+
}
1041+
1042+
void* memset(void*, int, size_t);
1043+
1044+
void memset_test(char* buf) { // $ ast-def=buf
1045+
memset(buf, source(), 10);
1046+
sink(*buf); // $ MISSING: ast ir
10401047
}

0 commit comments

Comments
 (0)