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

Andrew C. Morrow andrew.c.morrow at gmail.com
Tue May 29 09:50:17 PDT 2012

Hi -

The attached patch fixes the
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
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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ostream-null.patch
Type: application/octet-stream
Size: 687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120529/b0d8223b/attachment.obj>

More information about the cfe-dev mailing list