1997-08-19 03:34:40 -04:00
|
|
|
// 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");
|
|
|
|
}
|
|
|
|
|
1998-11-22 18:23:45 -05:00
|
|
|
int main()
|
1997-08-19 03:34:40 -04:00
|
|
|
{
|
|
|
|
foo(min(2, 1), min(100, 200));
|
|
|
|
return 0;
|
|
|
|
}
|