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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [array4.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// Origin: Markus Breuer 
3
 
4
// PR c++/6944
5
// Fail to synthesize copy constructor of multi-dimensional
6
// array of class.
7
 
8
#include 
9
 
10
class Array
11
{
12
public:
13
   std::string m_array[10][20][30];
14
};
15
 
16
Array func()
17
{
18
   Array result;
19
   return result; // sorry, not implemented: cannot initialize multi-dimensional array with initializer
20
}
21
 
22
 
23
int main()
24
{
25
   Array arr = func();
26
}
27
 

powered by: WebSVN 2.1.0

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