summaryrefslogtreecommitdiff
path: root/tests/test_memory.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-06-12 23:55:34 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-06-12 23:59:35 -0700
commitd04df2a48ba81725b704d92810277c5eb0206db4 (patch)
treef571dbe397f55605cfd678654d6c75692c648d48 /tests/test_memory.cpp
parent97afc16ef26ff5c830e01009e013f794d5f1a1d2 (diff)
Fix Clang 3.7 compatibility
Apparently Clang 3.7 implements C++ DR 1748 that makes placement new with null pointer undefined behavior. Which renders all C++ programs that rely on this invalid. Which includes pugixml. This is not very likely to happen in the wild because the allocations that are subject to this in pugixml are relatively small, but tests break because of this. Fix the issue by adding null pointer checks (that are completely redundant in all current compilers except Clang 3.7 but it's not like there is another option).
Diffstat (limited to 'tests/test_memory.cpp')
0 files changed, 0 insertions, 0 deletions