mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,6 @@ void main()
|
||||
scope c = new C;
|
||||
I i = c;
|
||||
|
||||
int* fail;
|
||||
int* fail = cast(int*) 1;
|
||||
*fail = 0;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ void main()
|
||||
while (iter < 25)
|
||||
{
|
||||
if (rand() % 20 == 10)
|
||||
*cast(int*)null = 0;
|
||||
*cast(int*)1 = 0;
|
||||
++iter;
|
||||
}
|
||||
assert(0);
|
||||
|
||||
@@ -5,6 +5,6 @@ void main()
|
||||
int i = 42;
|
||||
int* ip = &i;
|
||||
|
||||
int* fail;
|
||||
int* fail = cast(int*) 1;
|
||||
*fail = 0;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@ void main()
|
||||
wchar wc = 'w';
|
||||
dchar dc = 'd';
|
||||
|
||||
int* fail;
|
||||
int* fail = cast(int*) 1;
|
||||
*fail = 32;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@ void main()
|
||||
|
||||
void func(int i, real r, real* p)
|
||||
{
|
||||
int* fail;
|
||||
int* fail = cast(int*) 1;
|
||||
*fail = 666;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ void main()
|
||||
{
|
||||
char[] str = "hello world :)";
|
||||
|
||||
int* fail;
|
||||
int* fail = cast(int*) 1;
|
||||
*fail = 32;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ int gi;
|
||||
|
||||
void main()
|
||||
{
|
||||
int* fail;
|
||||
int* fail = cast(int*) 1;
|
||||
*fail = 0;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,6 @@ void main()
|
||||
foo.bar.y = 3.1415;
|
||||
foo.bar.foo = &foo;
|
||||
|
||||
int* fail;
|
||||
int* fail = cast(int*) 1;
|
||||
*fail = 0;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ struct Foo
|
||||
|
||||
void func()
|
||||
{
|
||||
int* fail;
|
||||
int* fail = cast(int*) 1;
|
||||
*fail = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user