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
1 changed files with 8 additions and 0 deletions

View File

@ -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 --------------
{