Mercurial > projects > ldc
view test/pointers.d @ 26:99737f94abfb trunk
[svn r30] * Fixed static function-local variables.
* Fixed CondExp - bool ? true : false
author | lindquist |
---|---|
date | Thu, 04 Oct 2007 10:57:26 +0200 |
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; }