Mercurial > projects > dstress
comparison run/v/volatile_02_C.d @ 1535:20d8ee6523e1
updated to DMD-1.013
author | thomask |
---|---|
date | Mon, 07 May 2007 05:19:57 +0000 |
parents | b8c0195059d9 |
children |
comparison
equal
deleted
inserted
replaced
1534:345207906be7 | 1535:20d8ee6523e1 |
---|---|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5726 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5726 |
8 | 8 |
9 module dstress.run.v.volatile_02_C; | 9 module dstress.run.v.volatile_02_C; |
10 | 10 |
11 template atomicLoad( T ){ | 11 template atomicLoad( T ){ |
12 T atomicLoad( inout T val ){ | 12 T atomicLoad( ref T val ){ |
13 volatile{ | 13 volatile{ |
14 return val; | 14 return val; |
15 } | 15 } |
16 } | 16 } |
17 } | 17 } |