aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/array4.C
blob: 61ef9c0d33fa93f1e42ae0c06b2fe9ae90143f9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// { dg-do compile }
// { dg-require-effective-target size20plus }
// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
// 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();
}