Mercurial > projects > dstress
changeset 1078:083f68b5b904
<webmaster@villagersonline.com>
2006-07-06
mail:bug-244-6@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Mon, 10 Jul 2006 10:51:42 +0000 |
parents | b925c4d64468 |
children | 3c015ea74cfb |
files | compile/t/template_35_A.d run/a/asm_cmpsd_01_A.d run/o/opCat_07_A.d run/o/opMul_01.d run/typeid_38.d |
diffstat | 5 files changed, 52 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/compile/t/template_35_A.d Mon Jul 10 10:51:31 2006 +0000 +++ b/compile/t/template_35_A.d Mon Jul 10 10:51:42 2006 +0000 @@ -16,5 +16,5 @@ const char[] bar = str; } -static assert(foo!("abc") == "abc"): +static assert(foo!("abc") == "abc");
--- a/run/a/asm_cmpsd_01_A.d Mon Jul 10 10:51:31 2006 +0000 +++ b/run/a/asm_cmpsd_01_A.d Mon Jul 10 10:51:42 2006 +0000 @@ -16,14 +16,20 @@ int main(){ haveSSE2!()(); - static double[2] A = [1.0, 2.0]; - static double[2] B = [1.0, 2.0]; - ulong[2] c; - double[2] d; + double[] a = new double[2]; + a[0] = 1.0; + a[1] = 2.0; + + double[] b = new double[2]; + b[0] = 1.0; + b[1] = 2.0; + + ulong[] c = new ulong[2]; + double[] d = new double[2]; asm{ - movupd XMM0, A; - movupd XMM1, B; + movupd XMM0, a; + movupd XMM1, b; cmpsd XMM0, XMM1, 0; movdqu c, XMM0; movupd d, XMM0; @@ -32,13 +38,13 @@ if(c[0] != ulong.max){ assert(0); } - if(d[1] != A[1]){ + if(d[1] != a[1]){ assert(0); } return 0; - }else{ - pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); - static assert(0); } +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); }
--- a/run/o/opCat_07_A.d Mon Jul 10 10:51:31 2006 +0000 +++ b/run/o/opCat_07_A.d Mon Jul 10 10:51:42 2006 +0000 @@ -10,11 +10,14 @@ module dstress.run.o.opCat_07_A; void foo(char[] s){ - assert(s=="is this it? yep!") + if(s != "is this it? yep!"){ + assert(0); + } } int main(){ char c = '?'; foo("is this it"~c~" yep!"); + return 0; }
--- a/run/o/opMul_01.d Mon Jul 10 10:51:31 2006 +0000 +++ b/run/o/opMul_01.d Mon Jul 10 10:51:42 2006 +0000 @@ -7,6 +7,10 @@ int main(){ ifloat i=2.0fi; i = i * 4.0f; - assert(i==8.0fi): + + if(i != 8.0fi){ + assert(0); + } + return 0; }
--- a/run/typeid_38.d Mon Jul 10 10:51:31 2006 +0000 +++ b/run/typeid_38.d Mon Jul 10 10:51:42 2006 +0000 @@ -7,16 +7,33 @@ int main(){ TypeInfo ti = typeid(long[]); - assert(!(ti is null)); - assert(ti); - assert(ti.tsize==(long[]).sizeof); - assert(ti.toString()=="long[]"); + if(ti is null){ + assert(0); + } + + if(!ti){ + assert(0); + } + if(ti.tsize != (long[]).sizeof){ + assert(0); + } + if(ti.toString() != "long[]"){ + assert(0); + } - TypeInfo_Array ta = ast(TypeInfo_Array) ti; - assert(!(ta is null)); - assert(ta); - assert(ta.tsize==(long[]).sizeof); - assert(ta.toString()=="long[]"); + TypeInfo_Array ta = cast(TypeInfo_Array) ti; + if(ta is null){ + assert(0); + } + if(!ta){ + assert(0); + } + if(ta.tsize != (long[]).sizeof){ + assert(0); + } + if(ta.toString() != "long[]"){ + assert(0); + } return 0; }