Mercurial > projects > dstress
comparison run/mini/norun_debug12.d @ 1628:c6ef09dfba4d
add mini test set from ldc project
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Mon, 10 Jan 2011 19:47:18 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1627:e1b954780837 | 1628:c6ef09dfba4d |
---|---|
1 module mini.norun_debug12; | |
2 | |
3 interface I | |
4 { | |
5 int foo(); | |
6 } | |
7 | |
8 class C : I | |
9 { | |
10 int i = 24; | |
11 int foo() | |
12 { | |
13 return i; | |
14 } | |
15 } | |
16 | |
17 void main() | |
18 { | |
19 scope c = new C; | |
20 I i = c; | |
21 | |
22 int* fail = cast(int*) 1; | |
23 *fail = 0; | |
24 } |