dncurrency/nano/core_test/entry.cpp
Wesley Shillingford f8158fc03c
Remove compiler warnings (incl from third party headers) (#2072)
* Remove compiler warnings

* Fix new warnings in test

* Remove new msvc warnings
2019-07-12 17:28:21 +01:00

21 lines
360 B
C++

#include <gtest/gtest.h>
TEST (basic, basic)
{
ASSERT_TRUE (true);
}
TEST (asan, DISABLED_memory)
{
// Ignore warning with gcc/clang compilers
#ifndef _WIN32
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
uint8_t array[1];
auto value (array[-0x800000]);
(void)value;
#ifndef _WIN32
#pragma GCC diagnostic pop
#endif
}