lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [5961] Demonstrate a latent problem


From: Greg Chicares
Subject: [lmi-commits] [5961] Demonstrate a latent problem
Date: Sun, 05 Oct 2014 23:18:37 +0000

Revision: 5961
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5961
Author:   chicares
Date:     2014-10-05 23:18:36 +0000 (Sun, 05 Oct 2014)
Log Message:
-----------
Demonstrate a latent problem

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

Modified: lmi/trunk/assert_lmi_test.cpp
===================================================================
--- lmi/trunk/assert_lmi_test.cpp       2014-10-05 19:55:31 UTC (rev 5960)
+++ lmi/trunk/assert_lmi_test.cpp       2014-10-05 23:18:36 UTC (rev 5961)
@@ -41,6 +41,13 @@
         ,"Assertion 'not_true' failed."
         );
 
+    // The LMI_ASSERT macro is intended to "swallow the semicolon":
+    //   https://gcc.gnu.org/onlinedocs/cpp/Swallowing-the-Semicolon.html
+    if(not_true)
+        LMI_ASSERT(not_true);
+    else
+        LMI_ASSERT(!not_true);
+
     return 0;
 }
 




reply via email to

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