Overhaul and separate nullptr_t tests to pass with C++03.
authorEric Fiselier <eric@efcs.ca>
Wed, 19 Nov 2014 05:49:03 +0000 (05:49 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 19 Nov 2014 05:49:03 +0000 (05:49 +0000)
commit1eb8220aff18a095c180efb0f44e452eeca5f643
tree42e46faa9b805e76045a0c85402d63d8508c376d
parent3c8c46efd7dea518102c028c11d6ac93c47a4128
Overhaul and separate nullptr_t tests to pass with C++03.

The standard requires that nullptr_t can be reinterpret_cast to an integral type
at least the size of nullptr_t. There is no way to emulate this conversion in
the C++03 nullptr_t implementation. The test for this conversion has been moved
to a new test and marked XFAIL with c++03.

This recommits what was originally r222296.

llvm-svn: 222318
libcxx/test/language.support/support.types/nullptr_t.pass.cpp
libcxx/test/language.support/support.types/nullptr_t_integral_cast.fail.cpp [new file with mode: 0644]
libcxx/test/language.support/support.types/nullptr_t_integral_cast.pass.cpp [new file with mode: 0644]