Issue 299 - test for code changes

This commit is contained in:
Ant Mitchell 2015-03-24 15:12:35 +00:00
parent 7e744771ad
commit 148cc1a0a5

View File

@ -1425,6 +1425,14 @@ int main( int argc, const char ** argv )
XMLPrinter printer; XMLPrinter printer;
doc.Print( &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 -------------- // ----------- Performance tracking --------------
{ {