Mercurial > projects > ldc
view test/pointers.d @ 258:8dbddae09152 trunk
[svn r276] Fixed debug info for 'this' arg seemed to be broken.
author | lindquist |
---|---|
date | Thu, 12 Jun 2008 19:59:19 +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; }