From 911c21a981015df2be8b0c9c395eecffcd69c296 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Fri, 26 Feb 1999 08:41:15 +0000 Subject: [PATCH] Solaris/CC refused to compile part of this file, giving up for now. a=scc --- xpcom/tests/TestCOMPtr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xpcom/tests/TestCOMPtr.cpp b/xpcom/tests/TestCOMPtr.cpp index 858d6d03a7e..d451002165d 100644 --- a/xpcom/tests/TestCOMPtr.cpp +++ b/xpcom/tests/TestCOMPtr.cpp @@ -400,11 +400,14 @@ main() // [Shouldn't compile] Is it a compile time error to try to |Release| be hand? //foop->Release(); + /* Solaris Workshop compiler fails to compile this. */ +#if !(defined(SOLARIS) && !defined(__GNUG__)) cout << endl << "### Test 3: can you |AddRef| if you must?" << endl; STATIC_CAST(IFoo*, foop)->AddRef(); cout << endl << "### Test 4: can you |Release| if you must?" << endl; STATIC_CAST(IFoo*, foop)->Release(); +#endif cout << endl << "### Test 5: will a |nsCOMPtr| |Release| when it goes out of scope?" << endl; }