Mercurial > projects > dstress
annotate run/char_06.d @ 338:1f6cf5ccfbc9
1) updated rules to dmd-0.119
2) added __DSTRESS_ELINE__ tags
author | thomask |
---|---|
date | Mon, 21 Mar 2005 20:45:57 +0000 |
parents | |
children | f87ba6507260 |
rev | line source |
---|---|
338 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // check that char realy is unsigned | |
6 | |
7 module dstress.run.char_06; | |
8 | |
9 int main(){ | |
10 char a = '\xFB'; | |
11 ubyte b = 0xFBu; | |
12 | |
13 void* d = &a; | |
14 void* e = &b; | |
15 | |
16 assert(*(cast(byte*)(e)) == *(cast(byte*)(d))); | |
17 | |
18 return 0; | |
19 } |