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/] [init/] [array4.C] - Diff between revs 301 and 338

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

Rev 301 Rev 338
// { dg-do compile }
// { dg-do compile }
// Origin: Markus Breuer 
// Origin: Markus Breuer 
// PR c++/6944
// PR c++/6944
// Fail to synthesize copy constructor of multi-dimensional
// Fail to synthesize copy constructor of multi-dimensional
// array of class.
// array of class.
#include 
#include 
class Array
class Array
{
{
public:
public:
   std::string m_array[10][20][30];
   std::string m_array[10][20][30];
};
};
Array func()
Array func()
{
{
   Array result;
   Array result;
   return result; // sorry, not implemented: cannot initialize multi-dimensional array with initializer
   return result; // sorry, not implemented: cannot initialize multi-dimensional array with initializer
}
}
int main()
int main()
{
{
   Array arr = func();
   Array arr = func();
}
}
 
 

powered by: WebSVN 2.1.0

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