Commenting out tests that can't be made to work under MSVC++ 6.0. Not part of the build.

This commit is contained in:
dbaron%fas.harvard.edu 2001-12-11 03:15:37 +00:00
parent 19bd06047a
commit 4df9c4de1e

View File

@ -21,7 +21,7 @@
* L. David Baron <dbaron@fas.harvard.edu> (original author)
*/
#include "../base/nsAutoPtr.h"
#include "nsAutoPtr.h"
#include <stdio.h>
#include "nsCom.h"
@ -303,6 +303,7 @@ int main()
((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
}
#if 0 /* MSVC++ 6.0 can't be coaxed to accept this */
{
nsRefPtr<TestRefObject> p1( new TestRefObject() );
TestRefObject * const p2 = p1;
@ -316,6 +317,7 @@ int main()
printf("equality %s.\n",
((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
}
#endif /* Things that MSVC++ 6.0 can't be coaxed to accept */
{
nsRefPtr<const TestRefObject> p1( new TestRefObject() );