From ae9ab0741e9e6423a06c8e05f8d450de4330f368 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Wed, 24 Oct 2012 10:17:53 -0700 Subject: [PATCH] test case for unlinked nodes, commented out --- xmltest.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xmltest.cpp b/xmltest.cpp index 34088ad..f6b2072 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -943,6 +943,19 @@ int main( int /*argc*/, const char ** /*argv*/ ) } } +#if 0 + { + // Passes if assert doesn't fire. + XMLDocument xmlDoc; + + xmlDoc.NewDeclaration(); + xmlDoc.NewComment("Configuration file"); + + XMLElement *root = xmlDoc.NewElement("settings"); + root->SetAttribute("version", 2); + } +#endif + { const char* xml = " "; XMLDocument doc( true, COLLAPSE_WHITESPACE );