lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [4851] Demonstrate that dereferencing a null pointer cras


From: Greg Chicares
Subject: [lmi-commits] [4851] Demonstrate that dereferencing a null pointer cras
Date: Fri, 23 Apr 2010 14:01:29 +0000

Revision: 4851
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4851
Author:   chicares
Date:     2010-04-23 14:01:28 +0000 (Fri, 23 Apr 2010)
Log Message:
-----------
Demonstrate that dereferencing a null pointer cras

Modified Paths:
--------------
    lmi/trunk/round_to_test.cpp

Modified: lmi/trunk/round_to_test.cpp
===================================================================
--- lmi/trunk/round_to_test.cpp 2010-04-22 14:58:27 UTC (rev 4850)
+++ lmi/trunk/round_to_test.cpp 2010-04-23 14:01:28 UTC (rev 4851)
@@ -601,6 +601,10 @@
 {
     default_rounding_style() = r_indeterminate;
 
+    // Test default constructor.
+    round_to<double> const round_erroneously;
+    round_erroneously(2.7);
+
     // Test copy constructor and copy assignment operator.
     round_to<double> const round0(2, r_to_nearest);
     BOOST_TEST(2 == round0.decimals());





reply via email to

[Prev in Thread] Current Thread [Next in Thread]