Mercurial > projects > dstress
annotate run/char_06.d @ 1599:d37b19f7e8bb
Move run/c/case_01 to nocompile.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:28:31 +0200 |
parents | f87ba6507260 |
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 } |