annotate run/w/wchar_11_H.d @ 787:9a583bdb38a1

Stewart Gordon <smjg_1998@yahoo.com> 2005-12-12 news:dnjnqe$16sv$1@digitaldaemon.com
author thomask
date Sun, 01 Jan 2006 12:31:12 +0000
parents
children b8c0195059d9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
787
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
1 // $HeadURL$
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
2 // $Date$
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
3 // $Author$
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
4
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
6 // @date@ 2005-12-12
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
7 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
8
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
9 module dstress.run.c.wchar_11_H;
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
10
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
11 int main(){
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
12 const wchar[] string = "\uDBC4\uDD11"w;
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
13
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
14 static assert(string.length == 2);
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
15
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
16 static if(string[0] == 0xDBC4 && string[1] == 0xDD11){
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
17 return 0;
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
18 }
9a583bdb38a1 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
19 }