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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [array10.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// Copyright (C) 2005 Free Software Foundation, Inc.
// Copyright (C) 2005 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Jan 2005 
// Contributed by Nathan Sidwell 5 Jan 2005 
// PR 19270: ICE
// PR 19270: ICE
// Origin:  Ralf Wildenhues 
// Origin:  Ralf Wildenhues 
template struct Vec {
template struct Vec {
  T* data;
  T* data;
  T& operator[](int i) const;
  T& operator[](int i) const;
};
};
template inline T& Vec::operator[](int i) const
template inline T& Vec::operator[](int i) const
{
{
  return (&data[0])[i];
  return (&data[0])[i];
}
}
inline double foo(Vec v)
inline double foo(Vec v)
{
{
  return v[0];
  return v[0];
}
}
 
 

powered by: WebSVN 2.1.0

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