Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2007-05-27 07:22:25


Author: troy
Date: 2007-05-27 07:22:24 EDT (Sun, 27 May 2007)
New Revision: 4307
URL: http://svn.boost.org/trac/boost/changeset/4307

Log:
ppc isn't throwing on divide-by-zero. Investigate later.

Text files modified:
   sandbox-branches/boost-cmake/boost_1_34_0/libs/test/test/prg_exec_fail2.cpp | 10 ++++++++--
   1 files changed, 8 insertions(+), 2 deletions(-)

Modified: sandbox-branches/boost-cmake/boost_1_34_0/libs/test/test/prg_exec_fail2.cpp
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/libs/test/test/prg_exec_fail2.cpp (original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/test/test/prg_exec_fail2.cpp 2007-05-27 07:22:24 EDT (Sun, 27 May 2007)
@@ -26,11 +26,17 @@
 #include <cstddef> //Metrowerks linker needs at least one standard library
 #endif
 
+#include <stdio.h>
 
 int cpp_main( int, char *[] ) // note the name
 {
- int div = 0;
- return 10 / div;
+#if defined(__APPLE__) && defined(__ppc__)
+ printf("The ppc doesn't throw on divice-by-zero. No check.\n");
+ return 1;
+#else
+ int div = 0;
+ return 10 / div;
+#endif
 }
 
 //____________________________________________________________________________//


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk