mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-06 13:41:35 +01:00
Unit test
Add unit test for Issue 848 (segfault in ~Document)
This commit is contained in:
parent
26e089b9a2
commit
0ec4e86f14
@ -1281,6 +1281,12 @@ TEST(SchemaValidatingWriter, Simple) {
|
||||
EXPECT_TRUE(validator.GetInvalidDocumentPointer() == SchemaDocument::PointerType(""));
|
||||
}
|
||||
|
||||
TEST(Schema, Issue848) {
|
||||
rapidjson::Document d;
|
||||
rapidjson::SchemaDocument s(d);
|
||||
rapidjson::GenericSchemaValidator<rapidjson::SchemaDocument, rapidjson::Document> v(s);
|
||||
}
|
||||
|
||||
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
||||
|
||||
static SchemaDocument ReturnSchemaDocument() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user