Changeset View
Changeset View
Standalone View
Standalone View
test/lint/lint-format-strings-tests.txt
- This file was added.
--- Good ones --- | |||||
printme("%d", 1); => no error | |||||
printme("%d%d%d", 1, 2, 3); => no error | |||||
printme("%a%b%z", 1, "anything", 3); => no error | |||||
--- Comments --- | |||||
// This is a c++ comment, should not throw printme("%d", 1, 2); => no error | |||||
--- Preprocessor --- | |||||
#define printme(%d, 1, 2); => no error | |||||
-- Too many arguments --- | |||||
printme("%d", 1, 2); => error | |||||
printme("%a %b", 1, 2, "anything"); => error | |||||
--- Not enough argument --- | |||||
printme("%d"); should throw => error | |||||
printme("%a%b%z", 1, "anything"); => error | |||||
No newline at end of file |