annotate run/wchar_03.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 25e3f5d59df4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
142
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
1 // $HeadURL$
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
2 // $Date$
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
3 // $Author$
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
4
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
5 module dstress.run.wchar_03;
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
6
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
7 int main(){
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
8 wchar c;
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
9 assert(wchar.sizeof==2);
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
10 assert(wchar.sizeof==c.sizeof);
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
11 assert(wchar.sizeof==(cast(wchar)'a').sizeof);
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
12 assert(wchar.sizeof==typeof(c).sizeof);
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
13 return 0;
25e3f5d59df4 added wchar tests
thomask
parents:
diff changeset
14 }