changeset 383:23e3c52afce6

module destructor sequence for vital ( extern(C) _d_... ) modules 2/2
author thomask
date Sat, 02 Apr 2005 20:31:10 +0000
parents ab87341fc73f
children 168e5120626f
files run/assert_06.d run/assert_07.d run/opCatAssign_12.d run/opCatAssign_13.d
diffstat 4 files changed, 90 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/assert_06.d	Sat Apr 02 20:31:10 2005 +0000
@@ -0,0 +1,13 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.run.assert_06;
+
+static this(){
+	assert(1);
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/assert_07.d	Sat Apr 02 20:31:10 2005 +0000
@@ -0,0 +1,13 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.run.assert_07;
+
+static ~this(){
+	assert(1);
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/opCatAssign_12.d	Sat Apr 02 20:31:10 2005 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__
+
+module dstress.run.opCatAssign_12;
+
+static this(){
+	int[] a;
+	a.length = 2;
+	a[0]=1;
+	a[1]=2;
+	
+	int[] b;
+	b.length = 1;
+	b[0]=3;
+	
+	a~=b;
+	
+	assert(a.length==3);
+	assert(a[0]==1);
+	assert(a[1]==2);
+	assert(a[2]==3);
+	
+	assert(b.length==1);
+	assert(b[0]==3);
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/opCatAssign_13.d	Sat Apr 02 20:31:10 2005 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// __DSTRESS_ELINE__
+
+module dstress.run.opCatAssign_13;
+
+static ~this(){
+	int[] a;
+	a.length = 2;
+	a[0]=1;
+	a[1]=2;
+	
+	int[] b;
+	b.length = 1;
+	b[0]=3;
+	
+	a~=b;
+	
+	assert(a.length==3);
+	assert(a[0]==0);
+	assert(a[1]==1);
+	assert(a[2]==2);
+	
+	assert(b.length==1);
+	assert(b[0]==3);
+}
+
+int main(){
+	return 0;
+}
\ No newline at end of file