Mercurial > projects > ldc
view test/pointers.d @ 70:fb265a6efea1 trunk
[svn r74] Fixed passing types with different alignment to D-style variadic functions.
Fixed casting integer to pointer.
author | lindquist |
---|---|
date | Sun, 28 Oct 2007 19:33:50 +0100 |
parents | c53b6e3fe49a |
children |
line wrap: on
line source
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; }