URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [refs4.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed references
// execution test
int r;
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)
/* OK */;
else
r = 1;
}
int main()
{
foo(min(2, 1), min(100, 200));
return r;
}
Go to most recent revision | Compare with Previous | Blame | View Log