URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle39.C] - Rev 694
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/42338
// { dg-options "-std=c++0x -fabi-version=5" }
// { dg-final { scan-assembler "_Z1fIPiEDTcmppfp_Li0EET_" } }
// { dg-final { scan-assembler "_Z1gIiEvRK1AIT_EDTixfL0p_Li0EE" } }
template<typename T>
auto f(T t) -> decltype(++t, 0)
{
++t;
return 0;
}
template <class T>
struct A
{
T operator[](int) const { return 0; }
};
template< typename T >
void g(const A<T> &a, decltype(a[0]) t) { }
int main()
{
f((int*)0);
A<int> a;
g(a,1);
}
Go to most recent revision | Compare with Previous | Blame | View Log