comparison test/neg.d @ 23:77e3d1ddae3f trunk

[svn r27] * Fixed bug in aggregate field lookup. * Fixed structs with no fields. * Added support for NegExp as in -x.
author lindquist
date Thu, 04 Oct 2007 09:24:15 +0200
parents
children
comparison
equal deleted inserted replaced
22:a6360e68134a 23:77e3d1ddae3f
1 module neg;
2
3 void main()
4 {
5 int i = 32;
6 long l = 55;
7 float f = 23;
8 double d = 4;
9 assert(-i == -32);
10 assert(-l == -55);
11 assert(-f == -23);
12 assert(-d == -4);
13 }