[CPP-370] First attempt at isAdditionalFlowStep().

This commit is contained in:
Ziemowit Laski
2019-04-28 13:31:12 -07:00
parent dbec17f85b
commit d8b8dda439
2 changed files with 40 additions and 3 deletions

View File

@@ -94,14 +94,14 @@ int main(int argc, char **argv) {
const char *hello = "Hello, World\n";
const char **p = &hello;
(*p)++;
printf(hello); // NOT OK
printf(hello); // NOT OK [NOT DETECTED]
}
{
// Same as above block but through a C++ reference
const char *hello = "Hello, World\n";
const char *&p = hello;
p++;
printf(hello); // NOT OK
printf(hello); // NOT OK [NOT DETECTED]
}
if (gettext_debug) {
printf(new char[100]); // NOT OK
@@ -132,4 +132,4 @@ void another_func(void) {
printf(message); // OK
printf("Hello, World\n"); // OK
printf(gettext("Hello, World\n")); // OK
}
}