Mercurial > projects > ldc
annotate tangotests/e.d @ 313:a498b736a0bd trunk
[svn r334] Produce an error for zero-size types instead of segfaulting.
author | ChristianK |
---|---|
date | Sun, 29 Jun 2008 22:22:37 +0200 |
parents | 68a7dd38c03c |
children |
rev | line source |
---|---|
132 | 1 extern(C) int printf(char*,...); |
2 | |
3 class MyClass | |
4 { | |
5 this(int i = 4) | |
6 { | |
7 inner = this.new InnerClass; | |
8 } | |
9 | |
10 class InnerClass : Object.Monitor | |
11 { | |
12 void lock() {} | |
13 void unlock() {} | |
14 } | |
15 | |
16 InnerClass inner; | |
17 } | |
18 | |
19 void func() | |
20 { | |
21 scope c = new MyClass(42); | |
22 } | |
172
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
23 |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
24 void main() |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
25 { |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
26 func(); |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
27 } |