diff --git a/libcxx/test/std/numerics/bit/bit.cast/bit_cast.pass.cpp b/libcxx/test/std/numerics/bit/bit.cast/bit_cast.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.cast/bit_cast.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.cast/bit_cast.pass.cpp @@ -239,6 +239,28 @@ #endif } + // Test pointers + { + { + int obj = 3; + void* p = &obj; + test_roundtrip_through_nested_T(p); + test_roundtrip_through_buffer(p); + test_roundtrip_through(p); + test_roundtrip_through(p); + test_roundtrip_through(p); + } + { + int obj = 3; + int* p = &obj; + test_roundtrip_through_nested_T(p); + test_roundtrip_through_buffer(p); + test_roundtrip_through(p); + test_roundtrip_through(p); + test_roundtrip_through(p); + } + } + return true; }