зеркало из https://github.com/mozilla/pjs.git
Solaris/CC refused to compile part of this file, giving up for now. a=scc
This commit is contained in:
Родитель
e10f049385
Коммит
911c21a981
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче