bitcoin/bitcoin — pull request #4339 by theuni (2014-06-14 23:18:41+00:00)
Title: libc/libstdc++ sanity checks

Addresses #4081.

These are always enabled on all platforms, with the exception of the FD_SET test, which is irrelevant on platforms that don't use select().

Great care was taken to ensure that the tests (memcpy in particular) are not optimized away by the compiler, which would obviously defeat the purpose of the runtime checks.