Mercurial > projects > dstress
annotate run/mixin_05.d @ 1599:d37b19f7e8bb
Move run/c/case_01 to nocompile.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:28:31 +0200 |
parents | d3a3e0c251d8 |
children |
rev | line source |
---|---|
299 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Ilya Zaitseff <sark7@mail333.com> | |
6 // @date@ 2005-02-22 | |
7 // @uri@ news:opsmlwgpo1aaezs2@robingood | |
1384 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3034 |
299 | 9 |
10 module dstress.run.mixin_05; | |
11 | |
12 template T(){ | |
13 int x; | |
14 } | |
15 | |
16 struct S{ | |
17 mixin T; | |
18 } | |
19 | |
20 const S s = { x:2 }; | |
21 | |
22 int main(){ | |
23 assert(s.x==2); | |
24 return 0; | |
25 } |