testsuite: update mangling
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / new-array5.C
blob2379079ca859b35c3f9d3ce42753a95df8956d7f
1 // PR c++/77841
2 // { dg-do compile { target c++11 } }
4 auto p1 = new int[][1]();
5 auto p2 = new int[1][1]();
6 #if __cpp_aggregate_paren_init
7 auto p3 = new int[][4]({1, 2}, {3, 4});
8 auto p4 = new int[2][4]({1, 2}, {3, 4});
9 auto p5 = new int[2][1]({1, 2}, {3}); // { dg-error "too many initializers" "" { target c++20 } }
10 #endif
12 auto b1 = new int[][1]{};
13 auto b2 = new int[1][1]{};
14 auto b3 = new int[][4]{{1, 2}, {3, 4}};
15 auto b4 = new int[2][4]{{1, 2}, {3, 4}};