changeset 891:c2111f61b5d0

Thomas Kuehne <thomas-dloop@kuehne.cn> 2006-03-06 news:bug-20-3@http.d.puremagic.com/bugzilla/
author thomask
date Mon, 06 Mar 2006 15:29:40 +0000
parents 0a283929df11
children d0c871656e10
files nocompile/v/volatile_03_C.d run/v/volatile_03_A.d run/v/volatile_03_B.d
diffstat 3 files changed, 64 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/v/volatile_03_C.d	Mon Mar 06 15:29:40 2006 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
+// @date@	2006-03-06
+// @uri@	news:bug-20-4@http.d.puremagic.com/bugzilla/
+
+// __DSTRESS_ELINE__
+
+module dstress.nocompile.v.volatile_03_C;
+
+int state = 3;
+
+void main(){
+	int i;
+	volatile int i = state;
+}
+	
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/v/volatile_03_A.d	Mon Mar 06 15:29:40 2006 +0000
@@ -0,0 +1,23 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
+// @date@	2006-03-06
+// @uri@	news:bug-20-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.v.volatile_03_A;
+
+int state = 3;
+
+int main(){
+	int i;
+	volatile i = state;
+
+	if(i != 3){
+		assert(0);
+	}
+
+	return 0;
+}
+	
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/v/volatile_03_B.d	Mon Mar 06 15:29:40 2006 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
+// @date@	2006-03-06
+// @uri@	news:bug-20-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.v.volatile_03_B;
+
+int state = 3;
+
+int main(){
+	volatile int i = state;
+
+	if(i != 3){
+		assert(0);
+	}
+
+	return 0;
+}
+