Mercurial > projects > ldc
view tests/mini/r.d @ 1135:8ebbad15fc99
Remove struct padding which was making this test fail on 64-bit systems.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 24 Mar 2009 03:14:22 +0100 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
extern(C) int printf(char*, ...); class C { void dump() { printf("C dumped\n"); } } void heap() { auto c = new C; c.dump(); } void stack() { scope c = new C; c.dump(); } void main() { heap(); stack(); }