Mercurial > projects > ldc
view test/pointers.d @ 178:8873b7f1457e trunk
[svn r194] Fixed: string literal constant expressions with static array type was broken.
author | lindquist |
---|---|
date | Wed, 07 May 2008 05:02:48 +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; }