Mercurial > projects > dstress
annotate run/char_06.d @ 374:f87ba6507260
added missing meta-data
author | thomask |
---|---|
date | Thu, 31 Mar 2005 09:01:33 +0000 |
parents | 1f6cf5ccfbc9 |
children |
rev | line source |
---|---|
338 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
374 | 5 // check that char is unsigned |
338 | 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 } |