llvm-project/libcxx/test/std/containers/associative/map
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.access [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
map.cons [libcxx] Fix printf formats in two tests. 2020-10-16 13:47:45 +01:00
map.erasure [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
map.modifiers [libc++/abi] Clean up uses of <iostream> in the test suite 2020-10-13 20:25:33 -04:00
map.ops [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
map.special [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
PR28469_undefined_behavior_segfault.sh.cpp [libc++] Consider everything inside %T to be a dependency of each test 2020-06-10 22:38:05 -04:00
allocator_mismatch.compile.fail.cpp [libc++] Remove workaround for .fail.cpp tests that don't have clang-verify markup 2020-04-15 10:53:37 -04:00
compare.pass.cpp Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00
contains.pass.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
gcc_workaround.pass.cpp Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00
incomplete_type.pass.cpp Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00
types.pass.cpp Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00