mirror of https://github.com/AxioDL/tinyxml2.git
Issue 299 - test for code changes
This commit is contained in:
parent
7e744771ad
commit
148cc1a0a5
|
@ -1425,6 +1425,14 @@ int main( int argc, const char ** argv )
|
|||
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 --------------
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue