mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:57:36 +00:00
TestTypeTraits: Fix incorrectly namespaced nullptr_t
Problem: - Clang ToT fails to build `AK/Tests/TestTypeTraits.cpp` because `nullptr_t` is missing the `std` namespace qualifier. Solution: - Prepend the namespace qualifier.
This commit is contained in:
parent
43199e5613
commit
700f213011
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ struct Empty {
|
||||||
TEST_CASE(FundamentalTypeClassification)
|
TEST_CASE(FundamentalTypeClassification)
|
||||||
{
|
{
|
||||||
EXPECT_TRAIT_TRUE(IsVoid, void);
|
EXPECT_TRAIT_TRUE(IsVoid, void);
|
||||||
EXPECT_TRAIT_FALSE(IsVoid, int, Empty, nullptr_t);
|
EXPECT_TRAIT_FALSE(IsVoid, int, Empty, std::nullptr_t);
|
||||||
|
|
||||||
EXPECT_TRAIT_TRUE(IsNullPointer, std::nullptr_t);
|
EXPECT_TRAIT_TRUE(IsNullPointer, std::nullptr_t);
|
||||||
EXPECT_TRAIT_FALSE(IsNullPointer, void, int, Empty, decltype(0));
|
EXPECT_TRAIT_FALSE(IsNullPointer, void, int, Empty, decltype(0));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue