comparison test/a.d @ 1:c53b6e3fe49a trunk

[svn r5] Initial commit. Most things are very rough.
author lindquist
date Sat, 01 Sep 2007 21:43:27 +0200
parents
children d9d5d59873d8
comparison
equal deleted inserted replaced
0:a9e71648e74d 1:c53b6e3fe49a
1 module a;
2
3 int i = 42;
4
5 void main()
6 {
7 int j;
8 j = i;
9 int* p;
10 p = &j;
11 int k = *p;
12 assert(k == 42);
13
14 byte b = -1;
15 int i = b;
16 assert(i == -1);
17
18 int* p2 = p;
19
20 printf("Done\n");
21 }