test case for unlinked nodes, commented out
diff --git a/xmltest.cpp b/xmltest.cpp
index 34088ad..f6b2072 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -943,6 +943,19 @@
}
}
+#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 = "<element> </element>";
XMLDocument doc( true, COLLAPSE_WHITESPACE );