changeset 2290:80ae3a250bd8

8166483: gtest fmw should be updated to support null detection on SS >= 12u4 Reviewed-by: dholmes, kzhaldyb
author iignatyev
date Thu, 22 Sep 2016 15:40:35 +0300
parents b7c5288424c8
children d45240297def e4c5488bfc95
files test/fmw/gtest/include/gtest/internal/gtest-port.h
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/fmw/gtest/include/gtest/internal/gtest-port.h	Fri Sep 16 10:57:17 2016 -0700
+++ b/test/fmw/gtest/include/gtest/internal/gtest-port.h	Thu Sep 22 15:40:35 2016 +0300
@@ -1586,12 +1586,13 @@
 GTEST_API_ size_t GetThreadCount();
 
 // Passing non-POD classes through ellipsis (...) crashes the ARM
-// compiler and generates a warning in Sun Studio.  The Nokia Symbian
+// compiler and generates a warning in Sun Studio before 12u4. The Nokia Symbian
 // and the IBM XL C/C++ compiler try to instantiate a copy constructor
 // for objects passed through ellipsis (...), failing for uncopyable
 // objects.  We define this to ensure that only POD is passed through
 // ellipsis on these systems.
-#if defined(__SYMBIAN32__) || defined(__IBMCPP__) || defined(__SUNPRO_CC)
+#if defined(__SYMBIAN32__) || defined(__IBMCPP__) || \
+     (defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5130)
 // We lose support for NULL detection where the compiler doesn't like
 // passing non-POD classes through ellipsis (...).
 # define GTEST_ELLIPSIS_NEEDS_POD_ 1