+
+void VarArgTestCase::RepeatedPrintf()
+{
+ wxCharBuffer buffer(2);
+ char *p = buffer.data();
+ *p = 'h';
+ p++;
+ *p = 'i';
+
+ wxString s;
+ s = wxString::Format("buffer %s, len %d", buffer, wxStrlen(buffer));
+ CPPUNIT_ASSERT_EQUAL("buffer hi, len 2", s);
+
+ s = wxString::Format("buffer %s, len %d", buffer, wxStrlen(buffer));
+ CPPUNIT_ASSERT_EQUAL("buffer hi, len 2", s);
+}