view run/v/volatile_02_B.d @ 764:9b2038d153c2

Sean Kelly <sean@f4.ca> 2005-12-02 news:dmqv98$1868$1@digitaldaemon.com
author thomask
date Sun, 04 Dec 2005 14:38:30 +0000
parents
children b8c0195059d9
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Sean Kelly <sean@f4.ca>
// @date@	2005-12-02
// @uri@	news:dmqv98$1868$1@digitaldaemon.com

module dstress.run.v.volatile_02_B;

template atomicLoad( T ){
	T atomicLoad( inout T val ){
		volatile{
			return val;
		}
	}
}

int main(){
	int  i;
	atomicLoad!(int)(i);
	return 0;
}