mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
CPP: Correct the tests.
This commit is contained in:
@@ -9,8 +9,8 @@ void myMultiplyDefinedPrintf2(const char *format, const char *extraArg, ...);
|
||||
|
||||
void test_custom_printf1()
|
||||
{
|
||||
myMultiplyDefinedPrintf("%i", "%s", 1); // GOOD
|
||||
myMultiplyDefinedPrintf("%i", "%s", 1.0f); // BAD [NOT DETECTED]
|
||||
myMultiplyDefinedPrintf2("%i", "%s", 1); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", "%s", 1.0f); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf("%i", "%f", 1); // GOOD
|
||||
myMultiplyDefinedPrintf("%i", "%f", 1.0f); // BAD [NOT DETECTED]
|
||||
myMultiplyDefinedPrintf2("%i", "%f", 1); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", "%f", 1.0f); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user