Mercurial > projects > ldc
view tests/mini/norun_debug12.d @ 1568:a591aa6bd6dc
Forgot to add files.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Thu, 06 Aug 2009 17:04:36 +0200 |
parents | 925779c19395 |
children |
line wrap: on
line source
module mini.norun_debug12; interface I { int foo(); } class C : I { int i = 24; int foo() { return i; } } void main() { scope c = new C; I i = c; int* fail = cast(int*) 1; *fail = 0; }