Mercurial > projects > dstress
annotate run/v/volatile_02_D.d @ 1535:20d8ee6523e1
updated to DMD-1.013
author | thomask |
---|---|
date | Mon, 07 May 2007 05:19:57 +0000 |
parents | b8c0195059d9 |
children |
rev | line source |
---|---|
764 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Sean Kelly <sean@f4.ca> | |
6 // @date@ 2005-12-02 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5726 |
764 | 8 |
9 module dstress.run.v.volatile_02_D; | |
10 | |
11 template atomicLoad( T ){ | |
1535 | 12 T atomicLoad( ref T val ){ |
764 | 13 return val; |
14 } | |
15 } | |
16 | |
17 int main(){ | |
18 int i; | |
19 uint u; | |
20 atomicLoad!(int)(i); | |
21 atomicLoad!(uint)(u); | |
22 return 0; | |
23 } | |
24 | |
25 | |
26 |