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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
761
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
1 // $HeadURL$
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
2 // $Date$
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
3 // $Author$
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
4
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
5 // @author@ Sean Kelly <sean@f4.ca>
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
6 // @date@ 2005-12-02
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1091
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5725
761
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
8
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
9 module dstress.run.b.bug_glue_387_F;
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
10
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
11 template atomicStore( T )
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
12 {
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 761
diff changeset
13 void atomicStore(T newval)
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 761
diff changeset
14 {
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 761
diff changeset
15 volatile asm
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 761
diff changeset
16 {
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 761
diff changeset
17 mov EAX, newval;
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 761
diff changeset
18 }
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 761
diff changeset
19 }
761
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
20 }
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
21
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
22 int main(){
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
23 atomicStore!(uint)( 1 );
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
24
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
25 return 0;
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
26 }
97e2ffa95262 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
27