diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/char_06.d	Mon Mar 21 20:45:57 2005 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// check that char realy is unsigned
+
+module dstress.run.char_06;
+
+int main(){
+	char a = '\xFB';
+	ubyte b = 0xFBu;
+	
+	void* d = &a;
+	void* e = &b;
+
+	assert(*(cast(byte*)(e)) == *(cast(byte*)(d)));
+
+	return 0;
+}