PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / debug / debug7.C
blob8731cf81da7b1661676d11238813512be5c14a5c
1 // { dg-do compile }
2 // { dg-prune-output "note" }
4 void f (int);
6 int
7 main() {
9   int a = 4;
10   int b = 5;
11   int (*x)[b] = new int[a][b]; // { dg-error "" }
13   x[2][1] = 7;
15   for (int i = 0; i < a; ++i)
16     for (int j = 0; j < b; ++j)
17       f (x[i][j]);
18   delete [] x;