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_A;
|
|
10
|
|
11 template atomicLoad( T ){
|
1535
|
12 T atomicLoad( ref T val ){
|
764
|
13 volatile{
|
|
14 return val;
|
|
15 }
|
|
16 }
|
|
17 }
|
|
18
|
|
19 int main(){
|
|
20 int i;
|
|
21 uint u;
|
|
22 atomicLoad!(int)(i);
|
|
23 atomicLoad!(uint)(u);
|
|
24 return 0;
|
|
25 }
|
|
26
|
|
27
|
|
28
|