[libc++][patch] Fix ostream.inserters test for null pointers on Linux

Hi -

The attached patch fixes the
input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp
test, which fails in my environment (Ubuntu 12.04 x86_64). The test
expects a NULL pointer to be represented as '0x0', but in my
environment it is represented as '(nil)'.

This variation was already handled in
localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp,
so I just copied that logic. If there is a better way to do this,
where the test doesn't need to enumerate the possible representations,
please let me know and I'll apply it to both tests.

Thanks,
Andrew

ostream-null.patch (687 Bytes)

Andrew,
Patches should be sent to the cfe-commits list (cfe-commits@cs.uiuc.edu).

Chad