Mercurial > projects > dstress
annotate run/b/bug_glue_387_F.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 9dcac8d4e97f |
children |
rev | line source |
---|---|
761 | 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=5725 |
761 | 8 |
9 module dstress.run.b.bug_glue_387_F; | |
10 | |
11 template atomicStore( T ) | |
12 { | |
1091 | 13 void atomicStore(T newval) |
14 { | |
15 volatile asm | |
16 { | |
17 mov EAX, newval; | |
18 } | |
19 } | |
761 | 20 } |
21 | |
22 int main(){ | |
23 atomicStore!(uint)( 1 ); | |
24 | |
25 return 0; | |
26 } | |
27 |