changeset 1624:16361129bf5f

add test
author Moritz Warning <moritzwarning@web.de>
date Thu, 06 Jan 2011 14:25:32 +0100
parents 04022926a4d5
children 4e908dadd51c
files Makefile compile/cast_interface.d dstress.c
diffstat 3 files changed, 31 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
--- /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;
+}
+
+
--- 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