changeset 71:b59a98da84f4

extended char tests
author thomask
date Wed, 27 Oct 2004 17:24:53 +0000
parents 5f98d4a33d49
children b0e95b878322
files nocompile/char_04.d nocompile/char_05.d run/char_03.d
diffstat 3 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/char_04.d	Wed Oct 27 17:24:53 2004 +0000
@@ -0,0 +1,3 @@
+module dstress.nocompile.char_04;
+
+char c = 0x100;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/char_05.d	Wed Oct 27 17:24:53 2004 +0000
@@ -0,0 +1,3 @@
+module dstress.nocompile.char_05;
+
+char c = -1;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/char_03.d	Wed Oct 27 17:24:53 2004 +0000
@@ -0,0 +1,9 @@
+module dstress.run.char_03;
+
+int main(){
+	char c;
+	assert(c.sizeof == byte.sizeof);
+	assert(c.sizeof == char.sizeof);
+	assert('c'.sizeof == char.sizeof);
+	return 0;
+}