# HG changeset patch # User Moritz Warning # Date 1294320332 -3600 # Node ID 16361129bf5fed8823c6b475704cdf30ab649471 # Parent 04022926a4d5f1dee398e75fbd8aef655f79ed99 add test diff -r 04022926a4d5 -r 16361129bf5f Makefile --- a/Makefile Fri Nov 05 10:10:51 2010 -0300 +++ b/Makefile Thu Jan 06 14:25:32 2011 +0100 @@ -147,7 +147,7 @@ # nocompile : $(dstress__) nocompile_clean echo '#!/bin/sh' > nocompile.sh - find nocompile -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-nocompile" >> nocompile.sh + find nocompile -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) nocompile" >> nocompile.sh chmod +x nocompile.sh ./nocompile.sh 2>> $(LOG) @@ -177,7 +177,7 @@ # compile : $(dstress__) compile_clean echo '#!/bin/sh' > compile.sh - find compile -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-compile" >> compile.sh + find compile -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) compile" >> compile.sh chmod +x compile.sh ./compile.sh 2>> $(LOG) @@ -205,7 +205,7 @@ # run : $(dstress__) run_clean echo '#!/bin/sh' > run.sh - find run -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-run" >> run.sh + find run -type f -name "*\\.d" | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) run" >> run.sh chmod +x run.sh ./run.sh 2>> $(LOG) @@ -274,7 +274,7 @@ # norun : $(dstress__) norun_clean echo '#!/bin/sh' > norun.sh - find norun -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-norun" >> norun.sh + find norun -type f -name "*\\.d" | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) norun" >> norun.sh chmod +x norun.sh ./norun.sh 2>> $(LOG) diff -r 04022926a4d5 -r 16361129bf5f compile/cast_interface.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/cast_interface.d Thu Jan 06 14:25:32 2011 +0100 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ SiegeLoard +// @date@ 2010-06-01 +// @uri@ http://dsource.org/projects/ldc/ticket/450 + +interface A +{ + +} + +class B : A +{ + byte[2] a; + real b; +} + +void main() +{ + A a = new B(); + B b = cast(B) a; +} + + diff -r 04022926a4d5 -r 16361129bf5f dstress.c --- a/dstress.c Fri Nov 05 10:10:51 2010 -0300 +++ b/dstress.c Thu Jan 06 14:25:32 2011 +0100 @@ -157,7 +157,7 @@ #define TORTURE_PREFIX "torture-" #ifdef USE_POSIX -#define CRASH_RUN "./crashRun 30 1000" +#define CRASH_RUN "./crashRun 10 256" #ifdef USE_VALGRIND #define VALGRIND "valgrind --leak-check=no -q --suppressions=valgrind.suppress" #else