Mercurial > projects > ldc
view tests/mini/r.d @ 782:29f0e5847123
Don't use StdCall on Windows.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 22 Nov 2008 21:08:00 +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(); }