annotate test/union6.d @ 94:61615fa85940 trunk

[svn r98] Added support for std.c.stdlib.alloca via pragma(LLVM_internal, "alloca"). Added support for array .sort and .reverse properties. Fixed some bugs with pointer arithmetic. Disabled some DMD AST optimizations that was messing things up, destroying valuable information. Added a KDevelop project file, this is what I use for coding LLVMDC now :) Other minor stuff.
author lindquist
date Mon, 12 Nov 2007 06:32:46 +0100
parents 2332006e1fa4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
78
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
1 module union6;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
2
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
3 pragma(LLVM_internal, "notypeinfo") {
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
4 struct S
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
5 {
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
6 byte a;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
7 byte b;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
8 }
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
9 union U
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
10 {
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
11 byte a;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
12 byte b;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
13 S c;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
14 }
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
15 }
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
16
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
17 void main()
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
18 {
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
19 U u;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
20 auto a = u.c.b;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
21 //auto c = u.s.l;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
22 }