Mercurial > projects > dstress
changeset 148:a2f3b4e1bfe5
cleanup of test name doubles
author | thomask |
---|---|
date | Mon, 22 Nov 2004 11:12:05 +0000 |
parents | 6300c81ad8c0 |
children | 01612c05a7af |
files | nocompile/bug_mtype_2576.d nocompile/bug_mtype_2576_B.d nocompile/line_token_04.d nocompile/line_token_10.d nocompile/static_12.d nocompile/static_19.d nocompile/super_04.d nocompile/super_05.d run/bug_mtype_2576.d run/bug_mtype_2576_A.d run/float_litaeral_dec_04.d run/float_litaeral_dec_11.d run/integer_literal_dec_04.d run/integer_literal_dec_05.d run/ubyte_02.d run/ubyte_04.d run/ubyte_06.d run/ubyte_07.d run/ushort_02.d run/ushort_03.d run/ushort_05.d run/ushort_06.d run/version_28.d run/version_29.d |
diffstat | 24 files changed, 182 insertions(+), 134 deletions(-) [+] |
line wrap: on
line diff
--- a/nocompile/bug_mtype_2576.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Buchan <kbuchan@xtra.co.nz> -// @date@ 2004-10-16 -// @uri@ news:opsfwrktdm44buww@simon.mshome.net -// @url@ nntp://digitalmars.com digitalmars.D.bugs/2114 - -module dstress.nocompile.bug_mtype_2576; - -const char[] B = ['A']; - -int main(){ - cast(B)1; - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_mtype_2576_B.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Buchan <kbuchan@xtra.co.nz> +// @date@ 2004-10-16 +// @uri@ news:opsfwrktdm44buww@simon.mshome.net +// @url@ nntp://digitalmars.com digitalmars.D.bugs/2114 + +module dstress.nocompile.bug_mtype_2576_B; + +const char[] B = ['A']; + +int main(){ + cast(B)1; + return 0; +}
--- a/nocompile/line_token_04.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -#line
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/line_token_10.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,7 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.nocompile.line_token_10; + +#line
--- a/nocompile/static_12.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ - -int check(){ - static int x; - return x; -} - -int main(){ - check(); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/static_19.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.nocompile.static_19; + +int check(){ + static int x; + return x; +} + +int main(){ + check(); + return 0; +}
--- a/nocompile/super_04.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - -int x; -struct MyStruct{ - int x; - void test(){ - super.x=1; - } -} - -int main(){ - MyStruct c; - c.test(); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/super_05.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.nocompile.super_05; + +int x; +struct MyStruct{ + int x; + void test(){ + super.x=1; + } +} + +int main(){ + MyStruct c; + c.test(); + return 0; +}
--- a/run/bug_mtype_2576.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ J Anderson <REMOVEanderson@badmama.com.au> -// @date@ 2004-05-18 -// @uri@ news:c8c0uk$229r$1@digitaldaemon.com -// @url@ nntp://digitalmars.com/digitalmars.D.bugs/205 - -module dstress.run.bug_mtype_2576; - -struct Standard -{ - - struct NodeLeaf(NodeInfo, LeafInfo) - { - struct Node - { - NodeInfo info; - } - - struct Leaf - { - LeafInfo info; - } - - } - -} - -struct NodeInfo { } -struct LeafInfo { } - -alias Standard.NodeLeaf!(NodeInfo, LeafInfo).Node Node; - -int main( char[][] args ){ - return 0; -} -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bug_mtype_2576_A.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,39 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ J Anderson <REMOVEanderson@badmama.com.au> +// @date@ 2004-05-18 +// @uri@ news:c8c0uk$229r$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/205 + +module dstress.run.bug_mtype_2576_A; + +struct Standard +{ + + struct NodeLeaf(NodeInfo, LeafInfo) + { + struct Node + { + NodeInfo info; + } + + struct Leaf + { + LeafInfo info; + } + + } + +} + +struct NodeInfo { } +struct LeafInfo { } + +alias Standard.NodeLeaf!(NodeInfo, LeafInfo).Node Node; + +int main( char[][] args ){ + return 0; +} +
--- a/run/float_litaeral_dec_04.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -int main(){ - float f=3.40282e+38; // ~~ float.max - assert(f<f.max); - assert(f>3e+38); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_litaeral_dec_11.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.float_litaeral_dec_11; + +int main(){ + float f=3.40282e+38; // ~~ float.max + assert(f<f.max); + assert(f>3e+38); + return 0; +}
--- a/run/integer_literal_dec_04.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -int main(){ - int i = 2_147_483_647; - assert(i==i.max); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/integer_literal_dec_05.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,11 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.integer_literal_dec_05; + +int main(){ + int i = 2_147_483_647; + assert(i==i.max); + return 0; +}
--- a/run/ubyte_02.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - -int main(){ - ubyte u; - assert( u.sizeof == 1 ); - assert( ubyte.sizeof == 1 ); - assert( typeid( ubyte ).tsize() == 1 ); - return 0; -}
--- a/run/ubyte_04.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - -int main(){ - ubyte u; - - assert( u.max == 255 ); - assert( ubyte.max == 255 ); - - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ubyte_06.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.ubyte_06; + +int main(){ + ubyte u; + assert( u.sizeof == 1 ); + assert( ubyte.sizeof == 1 ); + assert( typeid( ubyte ).tsize() == 1 ); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ubyte_07.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.ubyte_07; + +int main(){ + ubyte u; + + assert( u.max == 255 ); + assert( ubyte.max == 255 ); + + return 0; +}
--- a/run/ushort_02.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - -int main(){ - ushort u; - assert( u.sizeof == 2 ); - assert( ushort.sizeof == 2 ); - assert( typeid( ushort ).tsize() == 2); - return 0; -}
--- a/run/ushort_03.d Mon Nov 22 11:11:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ - -int main(){ - ushort u; - assert( u.alignof >= u.sizeof ); - assert( ushort.alignof >= u.sizeof ); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ushort_05.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.ushort_05; + +int main(){ + ushort u; + assert( u.sizeof == 2 ); + assert( ushort.sizeof == 2 ); + assert( typeid( ushort ).tsize() == 2); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ushort_06.d Mon Nov 22 11:12:05 2004 +0000 @@ -0,0 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstess.run.ushort_06; + +int main(){ + ushort u; + assert( u.alignof >= u.sizeof ); + assert( ushort.alignof >= u.sizeof ); + return 0; +}