Mercurial > projects > dstress
annotate run/s/static_35_A.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | a025bb49e44f |
children |
rev | line source |
---|---|
776 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Kris <fu@bar.com> | |
6 // @date@ 2005-12-05 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5753 |
776 | 8 |
9 module dstress.run.s.static_35_A; | |
10 | |
11 struct Outer{ | |
12 static struct Inner(T){ | |
13 static int test(){ | |
14 return 2 + T.sizeof; | |
15 } | |
16 } | |
17 } | |
18 | |
19 int main(){ | |
20 if(Outer.Inner!(char).test() == 3){ | |
21 return 0; | |
22 } | |
23 } |