Mercurial > projects > dstress
comparison run/mini/norun_debug11.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_debug11; | |
2 | |
3 class C | |
4 { | |
5 } | |
6 | |
7 class D : C | |
8 { | |
9 int i = 42; | |
10 } | |
11 | |
12 class E : D | |
13 { | |
14 float fp = 3.14f; | |
15 } | |
16 | |
17 class F : E | |
18 { | |
19 F f; | |
20 } | |
21 | |
22 void main() | |
23 { | |
24 auto c = new C; | |
25 auto d = new D; | |
26 auto e = new E; | |
27 auto f = new F; | |
28 | |
29 auto ci = c.classinfo; | |
30 | |
31 int* fail = cast(int*) 1; | |
32 *fail = 0; | |
33 } |