Explorar o código

test case for unlinked nodes, commented out

Lee Thomason %!s(int64=13) %!d(string=hai) anos
pai
achega
ae9ab0741e
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      xmltest.cpp

+ 13 - 0
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 = "<element>    </element>";
 		XMLDocument doc( true, COLLAPSE_WHITESPACE );