comparison tests/mini/r.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents tangotests/r.d@0dec7b3727ea
children
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 extern(C) int printf(char*, ...);
2
3 class C
4 {
5 void dump()
6 {
7 printf("C dumped\n");
8 }
9 }
10
11 void heap()
12 {
13 auto c = new C;
14 c.dump();
15 }
16
17 void stack()
18 {
19 scope c = new C;
20 c.dump();
21 }
22
23 void main()
24 {
25 heap();
26 stack();
27 }