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.
This commit is contained in:
Frits van Bommel
2009-05-28 02:28:30 +02:00
parent a24a2201f1
commit b06fa1f05e
11 changed files with 11 additions and 11 deletions

View File

@@ -2,7 +2,7 @@ module mini.norun_debug1;
void main()
{
int* ptr;
int* ptr = cast(int*) 1;
// all these should be inspectable
int i = 1;

View File

@@ -16,6 +16,6 @@ void main()
void func(Vec2 v2, ref Vec2 rv2, char[] str, out int i, ref float f)
{
int* fail;
int* fail = cast(int*) 1;
*fail = 0;
}

View File

@@ -19,6 +19,6 @@ void main()
scope c = new C;
I i = c;
int* fail;
int* fail = cast(int*) 1;
*fail = 0;
}

View File

@@ -8,7 +8,7 @@ void main()
while (iter < 25)
{
if (rand() % 20 == 10)
*cast(int*)null = 0;
*cast(int*)1 = 0;
++iter;
}
assert(0);

View File

@@ -5,6 +5,6 @@ void main()
int i = 42;
int* ip = &i;
int* fail;
int* fail = cast(int*) 1;
*fail = 0;
}

View File

@@ -6,6 +6,6 @@ void main()
wchar wc = 'w';
dchar dc = 'd';
int* fail;
int* fail = cast(int*) 1;
*fail = 32;
}

View File

@@ -10,6 +10,6 @@ void main()
void func(int i, real r, real* p)
{
int* fail;
int* fail = cast(int*) 1;
*fail = 666;
}

View File

@@ -4,6 +4,6 @@ void main()
{
char[] str = "hello world :)";
int* fail;
int* fail = cast(int*) 1;
*fail = 32;
}

View File

@@ -4,6 +4,6 @@ int gi;
void main()
{
int* fail;
int* fail = cast(int*) 1;
*fail = 0;
}

View File

@@ -26,6 +26,6 @@ void main()
foo.bar.y = 3.1415;
foo.bar.foo = &foo;
int* fail;
int* fail = cast(int*) 1;
*fail = 0;
}

View File

@@ -6,7 +6,7 @@ struct Foo
void func()
{
int* fail;
int* fail = cast(int*) 1;
*fail = 0;
}
}