Mercurial > projects > dstress
view run/s/static_36_F.d @ 1615:8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 12 Jul 2009 16:44:52 +0200 |
parents | ab71ca67c717 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Dave <Dave_member@pathlink.com> // @date@ 2006-03-18 // @uri@ news:dvgq34$22hv$1@digitaldaemon.com module dstress.run.c.static_36_F; static z = r; const float r = 2.0f; int main(){ auto x = z; static assert(is(x == float)); if(x != 2.0f){ assert(0); } return 0; }