+#include <signal.h>
+
+static int rc = 0;
+static int EXPECTED_ABORT = 0;
+static int UNEXPECTED_ABORT = 1;
+
+void aborthandler( int signal )
+{
+ TESTCASE( ! EXPECTED_ABORT );
+ exit( rc );
+}
+
+#define NDEBUG
+#include <assert.h>
+
+int disabled_test()
+{
+ int i = 0;
+ assert( i == 0 ); /* NDEBUG set, condition met */
+ assert( i == 1 ); /* NDEBUG set, condition fails */
+ return i;
+}
+
+#undef NDEBUG
+#include <assert.h>