annotate test/union6.d @ 91:3f949c6e2e9d trunk

[svn r95] added support for mains like: T main(string[] args) fixed a bug with slicing a pointer that is an argument with no storage
author lindquist
date Wed, 07 Nov 2007 04:52:56 +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 }