diff options
| author | David Lamparter <equinox@diac24.net> | 2020-07-14 19:46:55 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-07-17 05:54:54 +0200 |
| commit | 555cc1001d40113829c016894507a7ded9faba7e (patch) | |
| tree | a8393152926212ba4ad538a87470cb6cabcefbed /tools/gcc-plugins/format-test.c | |
| parent | 05675eb32fdaaefb20a1e66a7517467227506857 (diff) | |
tools/gcc-frr-format: improve test
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'tools/gcc-plugins/format-test.c')
| -rw-r--r-- | tools/gcc-plugins/format-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gcc-plugins/format-test.c b/tools/gcc-plugins/format-test.c index b031ca5ece..fb7e41c7be 100644 --- a/tools/gcc-plugins/format-test.c +++ b/tools/gcc-plugins/format-test.c @@ -82,6 +82,12 @@ int test(unsigned long long ay) testfn("%Ld", v_pid_t); // WARN testfn("%Ld", v_uint64_t); // NOWARN + /* retain-typeinfo patch */ + testfn("%zu", (size_t)v_pid_t); // NOWARN (need retain-typeinfo patch) + testfn("%lu", (size_t)v_pid_t); // WARN (need retain-typeinfo patch) + testfn("%Lu", (uint64_t)v_pid_t); // NOWARN (need retain-typeinfo patch) + testfn("%lu", (uint64_t)v_pid_t); // WARN (need retain-typeinfo patch) + testfn("%pI4", &v_long); // WARN in_addr_t v_in_addr_t; |
