Mercurial > projects > dstress
view run/c/const_37_F.d @ 917:ab71ca67c717
Dave <Dave_member@pathlink.com>
2006-03-18
news:dvgq34$22hv$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 18 Mar 2006 15:09:55 +0000 |
parents | |
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.const_37_F; const 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; }