8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/refs4.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

22 lines
336 B
C

// GROUPS passed references
extern "C" void printf (char *, ...);
const int& min(const int& tX, const int& tY)
{
return tX < tY ? tX : tY;
}
void foo(const int m, const int n)
{
if (m == 1 && n == 100)
printf("PASS\n");
else
printf("FAIL\n");
}
int main()
{
foo(min(2, 1), min(100, 200));
return 0;
}