commit | 148cc1a0a57c8ab906fc8dbf987a4096f1d09e76 | [log] [tgz] |
---|---|---|
author | Ant Mitchell <ant@badmagic.com> | Tue Mar 24 15:12:35 2015 +0000 |
committer | Ant Mitchell <ant@badmagic.com> | Tue Mar 24 15:12:35 2015 +0000 |
tree | 1234f8c959b315a6af23c9c5644a51afeb4d812d | |
parent | 7e744771adc3b6ce51668434923d1deeb053a120 [diff] [blame] |
Issue 299 - test for code changes
diff --git a/xmltest.cpp b/xmltest.cpp index 243628c..06ac9fc 100644 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -1425,6 +1425,14 @@ XMLPrinter printer; doc.Print( &printer ); } + { + // Issue 299. Can print elements that are not linked in. + // Will crash if issue not fixed. + XMLDocument doc; + XMLElement* newElement = doc.NewElement( "printme" ); + XMLPrinter printer; + newElement->Accept( &printer ); + } // ----------- Performance tracking -------------- {