mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
CPP: Correct expected results.
This commit is contained in:
@@ -14,5 +14,5 @@ void test_custom_printf1()
|
||||
myMultiplyDefinedPrintf("%i", 0, 1, 2); // BAD (too many format arguments)
|
||||
myMultiplyDefinedPrintf2("%i", 0); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1, 2); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1, 2); // BAD (too many format arguments regardless of which definition is correct) [NOT DETECTED]
|
||||
}
|
||||
|
||||
@@ -11,5 +11,5 @@ void test_custom_printf2()
|
||||
myMultiplyDefinedPrintf("%i", 0, 1, 2); // BAD (too many format arguments)
|
||||
myMultiplyDefinedPrintf2("%i", 0); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1, 2); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1, 2); // BAD (too many format arguments regardless of which definition is correct) [NOT DETECTED]
|
||||
}
|
||||
@@ -7,5 +7,5 @@ void test_custom_printf2()
|
||||
myMultiplyDefinedPrintf("%i", 0, 1, 2); // BAD (too many format arguments)
|
||||
myMultiplyDefinedPrintf2("%i", 0); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1, 2); // GOOD (we can't tell which definition is correct so we have to assume this is OK)
|
||||
myMultiplyDefinedPrintf2("%i", 0, 1, 2); // BAD (too many format arguments regardless of which definition is correct) [NOT DETECTED]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user