simdjson/tests/padded_string_tests.cpp

17 lines
264 B
C++

#include "simdjson.h"
#include <cstdlib>
// this test is needed, because memcpy may be invoked on a null pointer
// otherwise
static void testNullString() {
std::string_view empty;
simdjson::padded_string blah(empty);
}
int main() {
testNullString();
}