Mercurial > projects > ldc
view tests/mini/classes2.d @ 351:f273f5c58a9a trunk
[svn r372] Fixed extern(C++) handling now same as DMD, which is to treat it like extern(C).
Fixed a problem in resolving struct types where the size of elements might not yet be known. Switched to using DMD size() instead
of LLVM ABI size (TargetData).
author | lindquist |
---|---|
date | Mon, 14 Jul 2008 03:23:43 +0200 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
extern(C) int printf(char*, ...); class A { int i; void f() { printf("A.f\n"); } } class B : A { long l; void f() { printf("B.f\n"); } } void main() { A a = new B; a.f(); }