stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r677777 - /stdcxx/branches/4.2.x/tests/regress/18.c.limits.stdcxx-988.cpp
Date Thu, 17 Jul 2008 23:51:25 GMT
Author: sebor
Date: Thu Jul 17 16:51:25 2008
New Revision: 677777

URL: http://svn.apache.org/viewvc?rev=677777&view=rev
Log:
2008-07-17  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/18.c.limits.stdcxx-988.cpp [HP aCC] (main): Avoided
	testing LLONG_MAX and LLONG_MIN unless 199901L <= __STDC_VERSION__
	(otherwise the macros are deliberately not defined).

Modified:
    stdcxx/branches/4.2.x/tests/regress/18.c.limits.stdcxx-988.cpp

Modified: stdcxx/branches/4.2.x/tests/regress/18.c.limits.stdcxx-988.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/regress/18.c.limits.stdcxx-988.cpp?rev=677777&r1=677776&r2=677777&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/regress/18.c.limits.stdcxx-988.cpp (original)
+++ stdcxx/branches/4.2.x/tests/regress/18.c.limits.stdcxx-988.cpp Thu Jul 17 16:51:25 2008
@@ -158,10 +158,17 @@
 
 #ifndef _RWSTD_NO_LONG_LONG
 
+#  if !defined __HP_aCC || 199901L <= __STDC_VERSION__
+
+    // HP aCC defines LLONG_MAX and LLONG_MIN only in C99 mode
+    // i.e., with -AC99
+
     assert (LLONG_MIN  != 0);
     assert (LLONG_MAX  >= +9223372036854775807LL);
     assert (ULLONG_MAX >= 18446744073709551615ULL);
 
+#  endif
+
 #endif   // _RWSTD_NO_LONG_LONG
 
     return 0;



Mime
View raw message