Test SetError() has effect
diff --git a/xmltest.cpp b/xmltest.cpp
index 7f2b22a..ca8995d 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -1924,7 +1924,9 @@
 	{

 		XMLDocument doc;

 		for( int i = 0; i < XML_ERROR_COUNT; i++ ) {

-			doc.SetError( (XMLError)i, 0, 0, 0 );

+			const XMLError error = static_cast<XMLError>(i);

+			doc.SetError( error, 0, 0, 0 );

+			XMLTest( "ErrorID() after SetError()", error, doc.ErrorID() );

 			doc.ErrorName();

 		}

 	}