Skip to content

Commit

Permalink
add test case for issue 7593
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed May 19, 2012
1 parent 017219a commit cf6ba5a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/runnable/complex.d
Expand Up @@ -287,6 +287,18 @@ void test7594()

/***************************************/

cdouble conv(cfloat a)
{
return a;
}

void test7593()
{
assert(conv(1.0f+1.0fi) == 1.0+1.0i);
}

/***************************************/

int main(char[][] args)
{

Expand All @@ -306,6 +318,7 @@ int main(char[][] args)
test14();
test7581();
test7594();
test7593();

printf("Success!\n");
return 0;
Expand Down

0 comments on commit cf6ba5a

Please sign in to comment.