view test/bug17.d @ 222:251548c1035d trunk

[svn r238] use *m for memory input constraints and pass in their address
author ChristianK
date Fri, 06 Jun 2008 21:44:17 +0200
parents ea65e12b0dd0
children
line wrap: on
line source

module bug17;

struct Vec
{
    Vec opAdd(ref Vec b) { return Vec(); }
    Vec opMul(double a) { return Vec(); }
}
void main()
{
    Vec foo;
    Vec bar;
    auto whee=foo+bar*1f;
}