Mercurial > projects > ldc
changeset 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 | ad999630aa35 |
children | ae70c438b281 |
files | tests/mini/norun_debug1.d tests/mini/norun_debug10.d tests/mini/norun_debug12.d tests/mini/norun_debug2.d tests/mini/norun_debug3.d tests/mini/norun_debug4.d tests/mini/norun_debug5.d tests/mini/norun_debug6.d tests/mini/norun_debug7.d tests/mini/norun_debug8.d tests/mini/norun_debug9.d |
diffstat | 11 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/mini/norun_debug1.d Thu May 28 02:14:01 2009 +0200 +++ b/tests/mini/norun_debug1.d Thu May 28 02:28:30 2009 +0200 @@ -2,7 +2,7 @@ void main() { - int* ptr; + int* ptr = cast(int*) 1; // all these should be inspectable int i = 1;
--- a/tests/mini/norun_debug10.d Thu May 28 02:14:01 2009 +0200 +++ b/tests/mini/norun_debug10.d Thu May 28 02:28:30 2009 +0200 @@ -16,6 +16,6 @@ void func(Vec2 v2, ref Vec2 rv2, char[] str, out int i, ref float f) { - int* fail; + int* fail = cast(int*) 1; *fail = 0; }
--- a/tests/mini/norun_debug12.d Thu May 28 02:14:01 2009 +0200 +++ b/tests/mini/norun_debug12.d Thu May 28 02:28:30 2009 +0200 @@ -19,6 +19,6 @@ scope c = new C; I i = c; - int* fail; + int* fail = cast(int*) 1; *fail = 0; }
--- 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);
--- a/tests/mini/norun_debug3.d Thu May 28 02:14:01 2009 +0200 +++ b/tests/mini/norun_debug3.d Thu May 28 02:28:30 2009 +0200 @@ -5,6 +5,6 @@ int i = 42; int* ip = &i; - int* fail; + int* fail = cast(int*) 1; *fail = 0; }
--- a/tests/mini/norun_debug4.d Thu May 28 02:14:01 2009 +0200 +++ b/tests/mini/norun_debug4.d Thu May 28 02:28:30 2009 +0200 @@ -6,6 +6,6 @@ wchar wc = 'w'; dchar dc = 'd'; - int* fail; + int* fail = cast(int*) 1; *fail = 32; }
--- a/tests/mini/norun_debug5.d Thu May 28 02:14:01 2009 +0200 +++ b/tests/mini/norun_debug5.d Thu May 28 02:28:30 2009 +0200 @@ -10,6 +10,6 @@ void func(int i, real r, real* p) { - int* fail; + int* fail = cast(int*) 1; *fail = 666; }
--- a/tests/mini/norun_debug6.d Thu May 28 02:14:01 2009 +0200 +++ b/tests/mini/norun_debug6.d Thu May 28 02:28:30 2009 +0200 @@ -4,6 +4,6 @@ { char[] str = "hello world :)"; - int* fail; + int* fail = cast(int*) 1; *fail = 32; }
--- a/tests/mini/norun_debug7.d Thu May 28 02:14:01 2009 +0200 +++ b/tests/mini/norun_debug7.d Thu May 28 02:28:30 2009 +0200 @@ -4,6 +4,6 @@ void main() { - int* fail; + int* fail = cast(int*) 1; *fail = 0; }