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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [array4.C] - Rev 154

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do compile }
// Origin: Markus Breuer <markus.breuer@materna.de>

// PR c++/6944
// Fail to synthesize copy constructor of multi-dimensional
// array of class.

#include <string>

class Array
{
public:
   std::string m_array[10][20][30];
};

Array func()
{
   Array result;
   return result; // sorry, not implemented: cannot initialize multi-dimensional array with initializer
}


int main()
{
   Array arr = func();
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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