[svn r5] Initial commit. Most things are very rough.

This commit is contained in:
Tomas Lindquist Olsen
2007-09-01 21:43:27 +02:00
parent 1c23dd2cdc
commit 34699bbb07
227 changed files with 84269 additions and 0 deletions

22
test/pointers.d Normal file
View File

@@ -0,0 +1,22 @@
module pointers;
struct S
{
long l;
}
void main()
{
int j = 42;
int* p = &j;
auto t = *p;
*p ^= t;
*p = ~t;
S s;
S* sp = &s;
*sp = s;
s = *sp;
}