summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assert/tst-assert-c++.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/assert/tst-assert-c++.cc b/assert/tst-assert-c++.cc
index 41cb487512..c01fc8bd25 100644
--- a/assert/tst-assert-c++.cc
+++ b/assert/tst-assert-c++.cc
@@ -16,6 +16,9 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
+/* Undefine NDEBUG to ensure the build system e.g. CFLAGS/CXXFLAGS
+ does not disable the asserts we want to test. */
+#undef NDEBUG
#include <assert.h>
/* The C++ standard requires that if the assert argument is a constant