Mercurial > projects > dstress
changeset 187:3c8211ff9a83
added tests for ExpressionStatement without affect
author | thomask |
---|---|
date | Thu, 09 Dec 2004 07:01:54 +0000 |
parents | c18d6e8a712e |
children | 40336fe41235 |
files | nocompile/ExpressionStatement_01.d nocompile/ExpressionStatement_02.d |
diffstat | 2 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/ExpressionStatement_01.d Thu Dec 09 07:01:54 2004 +0000 @@ -0,0 +1,11 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// Expressions that have no affect are illegal. +module dstress.nocompile.ExpressionStatement_01; + +int main(){ + 0+1; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/ExpressionStatement_02.d Thu Dec 09 07:01:54 2004 +0000 @@ -0,0 +1,11 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// Expressions that have no affect are illegal. +module dstress.nocompile.ExpressionStatement_02; + +int main(){ + 0; + return 0; +}