Mercurial > projects > dstress
annotate run/o/opXorAssign_01_B.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 9314ad174861 |
children |
rev | line source |
---|---|
587 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Derek Parnell <derek@psych.ward> | |
6 // @date@ 2005-06-20 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4363 |
587 | 8 // @desc@ Internal error: ../ztc/cgcs.c 213 |
9 | |
10 module dstress.run.o.opXorAssign_01_B; | |
11 | |
12 int main(){ | |
13 byte[1] arr=8; | |
14 assert(arr[0]==8); | |
15 | |
16 arr[0] ^= 1; | |
17 assert(arr[0]==9); | |
18 | |
19 arr[0] ^= 1; | |
20 assert(arr[0]==8); | |
21 | |
22 return 0; | |
23 } |