changeset 382:ab87341fc73f

module destructor sequence for vital ( extern(C) _d_... ) modules 1/2
author thomask
date Sat, 02 Apr 2005 20:26:33 +0000
parents caa540af4671
children 23e3c52afce6
files norun/assert_04.d norun/assert_05.d norun/bounds_checking_02.d norun/bounds_checking_03.d norun/switch_17.d norun/switch_18.d norun/throw_04.d norun/throw_05.d
diffstat 8 files changed, 134 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/assert_04.d	Sat Apr 02 20:26:33 2005 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__ 10
+
+module dstress.norun.assert_04;
+
+static ~this(){
+	assert(0);
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/assert_05.d	Sat Apr 02 20:26:33 2005 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__ 10
+
+module dstress.norun.assert_05;
+
+static this(){
+	assert(0);
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/bounds_checking_02.d	Sat Apr 02 20:26:33 2005 +0000
@@ -0,0 +1,17 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__ 12
+
+module dstress.norun.bounds_checking_02;
+
+static ~this(){
+	int[] arr;
+	arr.length=3;
+	arr[4]=4;
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/bounds_checking_03.d	Sat Apr 02 20:26:33 2005 +0000
@@ -0,0 +1,17 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__ 12
+
+module dstress.norun.bounds_checking_03;
+
+static this(){
+	int[] arr;
+	arr.length=3;
+	arr[4]=4;
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/switch_17.d	Sat Apr 02 20:26:33 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__ 12
+
+module dstress.norun.switch_17;
+
+int i;
+
+static ~this(){
+	switch(i){
+		case 1: i++; break; // dummy
+		
+	}
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/switch_18.d	Sat Apr 02 20:26:33 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__ 12
+
+module dstress.norun.switch_18;
+
+int i;
+
+static this(){
+	switch(i){
+		case 1: i++; break; // dummy
+		
+	}
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/throw_04.d	Sat Apr 02 20:26:33 2005 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__
+
+module dstress.norun.throw_04;
+
+static ~this(){
+	throw new Exception("Message\n");
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/throw_05.d	Sat Apr 02 20:26:33 2005 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__
+
+module dstress.norun.throw_04;
+
+static ~this(){
+	throw new Exception("Message\n");
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file