annotate nocompile/union_12.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents d3a3e0c251d8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
176
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
1 // $HeadURL$
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
2 // $Date$
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
3 // $Author$
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
4
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
5 // @author@ Geoff Hickey <Geoff_member@pathlink.com>
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
6 // @date@ 2004-12-02
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
7 // @uri@ news:coo7ep$2089$1@digitaldaemon.com
1384
d3a3e0c251d8 nntp: -> http:
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2429
176
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
9
374
f87ba6507260 added missing meta-data
thomask
parents: 176
diff changeset
10 // __DSTRESS_ELINE__ 22
f87ba6507260 added missing meta-data
thomask
parents: 176
diff changeset
11
176
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
12 module dstress.nocompile.union_12;
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
13
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
14 struct MyStruct{
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
15 union NamedUnion{
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
16 int i;
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
17 }
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
18 }
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
19
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
20 int main(){
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
21 MyStruct s;
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
22 s.NamedUnion.i = 1;
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
23 return 0;
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
24 }
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
25
49df706d0a10 accessing named union members
thomask
parents:
diff changeset
26