Testing issue 570
This commit is contained in:
parent
e8b3f9eaad
commit
04e8710cf5
|
@ -101,6 +101,12 @@ bool validate(const char *dirname) {
|
|||
printf("size of file in bytes: %zu \n", json.size());
|
||||
everything_fine = false;
|
||||
}
|
||||
// issue 570, we just want to check for segfault
|
||||
simdjson::document::parser parser;
|
||||
for (const simdjson::document &doc : parser.load_many(fullpath)) {
|
||||
auto iter = simdjson::document::iterator(doc);
|
||||
//do something
|
||||
}
|
||||
free(fullpath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue