17 lines
264 B
C++
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();
|
||
|
}
|