1 // { dg-do compile }
2 // { dg-prune-output "note" }
3 
4 void f (int);
5 
6 int
main()7 main() {
8 
9   int a = 4;
10   int b = 5;
11   int (*x)[b] = new int[a][b]; // { dg-error "" }
12 
13   x[2][1] = 7;
14 
15   for (int i = 0; i < a; ++i)
16     for (int j = 0; j < b; ++j)
17       f (x[i][j]);
18   delete [] x;
19 }
20