Skip to content

Commit

Permalink
test case for issue 8840
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Oct 18, 2012
1 parent fdb4132 commit 881f9fc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/runnable/test42.d
Original file line number Diff line number Diff line change
Expand Up @@ -5239,6 +5239,21 @@ void test8496()

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

long foo8840() { return 4; }

int bar8840(long g) { assert(g == 4); return printf("%llx\n", g); }

void test8840()
{
long f1 = foo8840();
long f2 = foo8840();

long f = (f1 < f2 ? f1 : f2);
int len = (f == 0 ? 0 : bar8840(f));
}

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

int main()
{
test1();
Expand Down Expand Up @@ -5502,6 +5517,7 @@ int main()
test8454();
test8423();
test8496();
test8840();

writefln("Success");
return 0;
Expand Down

0 comments on commit 881f9fc

Please sign in to comment.