Mercurial > projects > ldc
view test/pointers.d @ 192:67ed21bf16af trunk
[svn r208] const init interface vtbls to nonzero values only for nonabstract classes
author | ChristianK |
---|---|
date | Mon, 12 May 2008 18:22:55 +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; }