mirror of
https://github.com/clang-retro/llvm.git
synced 2026-12-06 00:59:46 -08:00
[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:
1 parent
17ba4f4053
commit
5dfdac74ca
35 files changed
+360
-511
No files matched your search
+1
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user