blob: 56d2dd20e82bb89931bcc387dac1bdb4caf0b8d3 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-Wcast-result" }
void test()
{
auto imvalue = 1.23i;
auto revalue = 1.23;
auto imtore = cast(double)imvalue; // { dg-warning "cast from 'idouble' to 'double' will produce zero result" }
auto retoim = cast(idouble)revalue; // { dg-warning "cast from 'double' to 'idouble' will produce zero result" }
return;
}