1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

tests/hash: fix bug in MSVC compiler.

This commit is contained in:
Henrik Hautakoski 2023-05-31 14:41:36 +02:00
parent 7e9bd41a83
commit e15a5ede18
2 changed files with 9 additions and 0 deletions

View file

@ -52,6 +52,9 @@ TEST_CASE("hash::ripemd160::init/update/final") {
const char *name;
std::vector<std::string> inputs;
libantelope::ripemd160_t expected;
#ifdef _MSC_VER
char _; // ripemd160_t can't be last, wierd compiler bug on MSVC
#endif
};
std::vector<testcase> tests = {

View file

@ -54,6 +54,9 @@ TEST_CASE("hash::sha256::sha256d") {
const char *name;
std::string input;
libantelope::sha256_t expected;
#ifdef _MSC_VER
char _; // sha256_t can't be last, wierd compiler bug on MSVC
#endif
};
std::vector<testcase> tests = {
@ -106,6 +109,9 @@ TEST_CASE("hash::sha256::init/update/final") {
const char *name;
std::vector<std::string> inputs;
libantelope::sha256_t expected;
#ifdef _MSC_VER
char _; // sha256_t can't be last, wierd compiler bug on MSVC
#endif
};
std::vector<testcase> tests = {