llvm-project/libcxx/test/std/containers/associative
Simon Tatham 4d60467f99 [libcxx] Fix printf formats in two tests.
rGcc69d211d0d65d7b introduced several uses of `printf` with format
directives `%lu` and `%ld` to format values of type `size_t` and
`ptrdiff_t` respectively.

That doesn't reliably work in all C implementations, because those
types aren't necessarily the same thing as 'long int': sometimes
they're not even the same size, and when they are the same size, they
might be officially defined as int rather than long (for example),
which causes clang to emit a diagnostic for the mismatch.

C has special-purpose printf modifier letters for these two types, so
it's safer to use them. Changed all `%lu` on `size_t` to `%zu`, and
all `%ld` on `ptrdiff_t` to `%td`.

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D89545
2020-10-16 13:47:45 +01:00
..
map [libcxx] Fix printf formats in two tests. 2020-10-16 13:47:45 +01:00
multimap [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
multiset [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
set [libc++/abi] Clean up uses of <iostream> in the test suite 2020-10-13 20:25:33 -04:00
iterator_types.pass.cpp Support tests in freestanding 2019-02-04 20:31:13 +00:00