@@ -1571,11 +1571,11 @@ TEST_F(EvalTest, TestCxxStaticCast) {
15711571
15721572 // Cast to nullptr.
15731573 EXPECT_THAT (Eval (" static_cast<nullptr_t>((int)0)" ),
1574- IsError (" static_cast from 'int' to 'nullptr_t' (canonically "
1574+ IsError (" static_cast from 'int' to 'std::__1:: nullptr_t' (canonically "
15751575 " referred to as 'std::nullptr_t')"
15761576 " is not allowed" ));
15771577 EXPECT_THAT (Eval (" static_cast<nullptr_t>((void*)0)" ),
1578- IsError (" static_cast from 'void *' to 'nullptr_t' (canonically "
1578+ IsError (" static_cast from 'void *' to 'std::__1:: nullptr_t' (canonically "
15791579 " referred to as 'std::nullptr_t')"
15801580 " is not allowed" ));
15811581
@@ -1797,18 +1797,17 @@ TEST_F(EvalTest, TestCxxReinterpretCast) {
17971797 Eval (" reinterpret_cast<void*>(nullptr)" ),
17981798 IsError (" reinterpret_cast from 'std::nullptr_t' to 'void *' is not "
17991799 " allowed" ));
1800- GTEST_SKIP () << " Unknown error string mismatch" ;
18011800 EXPECT_THAT (
18021801 Eval (" reinterpret_cast<nullptr_t>(ptr)" ),
1803- IsError (" reinterpret_cast from 'int *' to 'nullptr_t' "
1802+ IsError (" reinterpret_cast from 'int *' to 'std::__1:: nullptr_t' "
18041803 " (canonically referred to as 'std::nullptr_t') is not allowed" ));
18051804 EXPECT_THAT (
18061805 Eval (" reinterpret_cast<nullptr_t>(0)" ),
1807- IsError (" reinterpret_cast from 'int' to 'nullptr_t' "
1806+ IsError (" reinterpret_cast from 'int' to 'std::__1:: nullptr_t' "
18081807 " (canonically referred to as 'std::nullptr_t') is not allowed" ));
18091808 EXPECT_THAT (
18101809 Eval (" reinterpret_cast<nullptr_t>(nullptr)" ),
1811- IsError (" reinterpret_cast from 'std::nullptr_t' to 'nullptr_t' "
1810+ IsError (" reinterpret_cast from 'std::nullptr_t' to 'std::__1:: nullptr_t' "
18121811 " (canonically referred to as 'std::nullptr_t') is not allowed" ));
18131812}
18141813
0 commit comments