Mercurial > projects > ldc
view tests/mini/r.d @ 1543:21d691518d82
Use TargetRegistry instead of TargetMachineRegistry for Target lookups
This fixes the build for LLVM >= r75774 and will probably break older
LLVM revs.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 23:01:51 +0200 |
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(); }