blob: 4712e9d7253ddff8ffc20f302bbd73635a81b417 [file] [log] [blame]
// { dg-do compile }
// { dg-require-effective-target size20plus }
// 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();
}