URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [always_inline-4.C] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options "-O0" }
// { dg-do compile }
// PR C++/34715
template <class T>
const T& min123(const T& a, const T& b);
template <class T>
inline __attribute__ ((always_inline)) const T&
min123(const T& a, const T& b)
{
return a < b ? a : b;
}
int main()
{
int a, b;
return min123(a, b);
}
// { dg-final { scan-assembler-not "min123" } }
Go to most recent revision | Compare with Previous | Blame | View Log