This adds a test for GCC bug 90348 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90348), using a test case extracted from our own sha256d64 test in crypto_tests.cpp, which was failing on some platforms.
Backport of Bitcoin Core PR15985
https://github.com/bitcoin/bitcoin/pull/15985