[libc++][NFC] Avoid opening namespace std in the tests (#94160)

This also adds a few FIXMEs where we use UB in the tests.
This commit is contained in:
Nikolas Klauser authored and GitHub committed 2024-08-01 10:57:21 +02:00
1 parent 17ba4f4053
commit 5dfdac74ca
35 files changed
+360 -511

No files matched your search

@@ -23,9 +23,8 @@ struct VeryLarge {
char b;
};
namespace std {
template <>
struct char_traits<VeryLarge> {
struct std::char_traits<VeryLarge> {
using char_type = VeryLarge;
using int_type = int;
using off_type = streamoff;
@@ -55,7 +54,6 @@ struct char_traits<VeryLarge> {
static bool eq_int_type(int_type c1, int_type c2);
static int_type eof();
};
} // end namespace std
template <class S>
TEST_CONSTEXPR_CXX20 void test(S s, typename S::value_type c, S expected) {