testsuite: optimization dependent test
Johannes Pfau
nospam at example.com
Mon Mar 25 11:36:54 PDT 2013
In runnable/test42.d test7290 checks if a scope delegate is really
allocated on the stack. To verify this it obtains the EBP pointer and
compares that to the delegates .ptr.
The problem is that as soon as we enable optimization gcc no
longer adjusts the EBP pointer when calling the helper functions and
the test fails...
This test seems to be very fragile in general so what should we do
about this?
BTW: I introduced a small typo in test7290 when porting to GCC asm:
The test in the main test7290 function should check "assert(dg.ptr <=
p);", not "assert(p < dg.ptr);"
More information about the D.gnu
mailing list