diff run/bug_cgcs_353_R.d @ 870:38ea1bb385b6

bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
author thomask
date Sun, 26 Feb 2006 17:45:46 +0000
parents e56d6f1cb48e
children ec5e144583ea
line wrap: on
line diff
--- a/run/bug_cgcs_353_R.d	Sat Feb 25 08:30:52 2006 +0000
+++ b/run/bug_cgcs_353_R.d	Sun Feb 26 17:45:46 2006 +0000
@@ -9,22 +9,22 @@
 
 module dstress.run.bug_cgcs_353_R;
 
-bit[1] a;
-bit[1] b;
+bool[1] a;
+bool[1] b;
 
-bit[] concat() {
+bool[] concat() {
 	return a~b;
 }
 
 int main(){
-	a[]=0;
-	b[]=1;
+	a[] = false;
+	b[] = true;
 
-	bit[] arr=concat();
+	bool[] arr=concat();
 
 	assert(arr.length==2);
-	assert(arr[0]==0);
-	assert(arr[1]==1);
+	assert(!arr[0]);
+	assert(arr[1]);
 	
 	return 0;
 }