Mercurial > projects > dstress
changeset 688:00e1065a44b1
Thomas Kuehne <thomas-dloop@kuehne.cn>
2005-09-27
news:dhbb83$1gj4$1@digitaldaemon.com
author | thomask |
---|---|
date | Tue, 27 Sep 2005 11:43:00 +0000 |
parents | 59db9e5e7781 |
children | eb2591f2163c |
files | run/o/opCmp_07_A.d run/o/opCmp_07_B.d |
diffstat | 2 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCmp_07_A.d Tue Sep 27 11:43:00 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2005-09-27 +// @uri@ news:dhbb83$1gj4$1@digitaldaemon.com + +module dstress.run.o.opCmp_07_A; + +int main(){ + bit[9] a; + a[8] = true; + bit[9] b; + b[8] = false; + + assert(a>b); + + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCmp_07_B.d Tue Sep 27 11:43:00 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2005-09-27 +// @uri@ news:dhbb83$1gj4$1@digitaldaemon.com + +module dstress.run.o.opCmp_07_B; + +int main(){ + bit[9] a; + a[8] = false; + bit[9] b; + b[8] = true; + + assert(a<b); + + return 0; +} \ No newline at end of file