"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/runnable/iasm.d" between
dmd-2.093.0.tar.gz and dmd-2.093.1.tar.gz

About: DMD (Digital Mars D) is the D reference compiler. D is an object-oriented, imperative, multi-paradigm system programming language.

iasm.d  (dmd-2.093.0):iasm.d  (dmd-2.093.1)
skipping to change at line 4797 skipping to change at line 4797
} }
foreach (ref i, b; data) foreach (ref i, b; data)
{ {
//printf("data[%d] = 0x%02x, should be 0x%02x\n", i, p[i], b); //printf("data[%d] = 0x%02x, should be 0x%02x\n", i, p[i], b);
assert(p[i] == b); assert(p[i] == b);
} }
} }
/****************************************************/ /****************************************************/
// https://issues.dlang.org/show_bug.cgi?id=16400
extern(C) void f16400(int, ...)
{
asm {naked; ret;}
}
void test16400()
{
assert(*(cast(ubyte*) &f16400) == 0xc3); // fails
f16400(0); // corrupts the stack
}
/****************************************************/
int main() int main()
{ {
printf("Testing iasm.d\n"); printf("Testing iasm.d\n");
test1(); test1();
test2(); test2();
test3(); test3();
test4(); test4();
version (OSX) version (OSX)
{ {
} }
skipping to change at line 4871 skipping to change at line 4886
test53(); test53();
test54(); test54();
test55(); test55();
test56(); test56();
test57(); test57();
test58(); test58();
test59(); test59();
test60(); test60();
test9866(); test9866();
test17027(); test17027();
test16400();
} }
printf("Success\n"); printf("Success\n");
return 0; return 0;
} }
} }
else else
{ {
int main() { return 0; } int main() { return 0; }
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)