OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [overload/] [autoptr1.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// PR c++/35773
// PR c++/35773
template< typename T >
template< typename T >
class auto_ptr
class auto_ptr
{
{
  struct auto_ptr_ref { };
  struct auto_ptr_ref { };
public:
public:
  auto_ptr(auto_ptr&);
  auto_ptr(auto_ptr&);
  auto_ptr(auto_ptr_ref);
  auto_ptr(auto_ptr_ref);
  operator auto_ptr_ref();
  operator auto_ptr_ref();
};
};
template< typename T >
template< typename T >
class reference_wrapper
class reference_wrapper
{
{
public:
public:
  reference_wrapper(T& t);
  reference_wrapper(T& t);
  operator T& () const;
  operator T& () const;
};
};
struct X { };
struct X { };
void f(auto_ptr< X >);
void f(auto_ptr< X >);
void g(reference_wrapper< auto_ptr< X > > r)
void g(reference_wrapper< auto_ptr< X > > r)
{
{
  f(r);
  f(r);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.