diff tests/mini/norun_debug2.d @ 1425:925779c19395

I ran into another issue like the one fixed by r1318, so update all of `tests/mini/norun_debug*` to hopefully keep crashing using the same trick.
author Frits van Bommel <fvbommel wxs.nl>
date Thu, 28 May 2009 02:28:30 +0200
parents 24ea9bf5f8b7
children
line wrap: on
line diff
--- a/tests/mini/norun_debug2.d	Thu May 28 02:14:01 2009 +0200
+++ b/tests/mini/norun_debug2.d	Thu May 28 02:28:30 2009 +0200
@@ -8,7 +8,7 @@
     while (iter < 25)
     {
         if (rand() % 20 == 10)
-            *cast(int*)null = 0;
+            *cast(int*)1 = 0;
         ++iter;
     }
     assert(0);