changeset 1148:4e9ac384388d

added basic character literal tests
author thomask
date Thu, 21 Sep 2006 23:49:44 +0000
parents 90cf22616882
children e5a858c76b5a
files compile/c/character_literal_01_A.d compile/c/character_literal_01_B.d compile/c/character_literal_01_C.d
diffstat 3 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/c/character_literal_01_A.d	Thu Sep 21 23:49:44 2006 +0000
@@ -0,0 +1,9 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.compile.c.character_literal_01_A;
+
+auto c = '\U00000070';
+
+static assert(is(typeof(c) == dchar));
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/c/character_literal_01_B.d	Thu Sep 21 23:49:44 2006 +0000
@@ -0,0 +1,9 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.compile.c.character_literal_01_B;
+
+auto c = '\u0070';
+
+static assert(is(typeof(c) == char));
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/c/character_literal_01_C.d	Thu Sep 21 23:49:44 2006 +0000
@@ -0,0 +1,9 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.compile.c.character_literal_01_C;
+
+auto c = '\u0170';
+
+static assert(is(typeof(c) == wchar));