1 // global and local multidimensional array objects are not getting
2 // constructors called on any dimension, other than the first. Also,
3 // the destructors are not being called. Seems odd, they probably
7 extern "C" int printf (const char *, ...);
11 void print (int i, int j) { printf ("foo[%d][%d] = %d\n", i, j, x); }
15 printf("this %d = %x\n", x, (void *)this);
18 printf("this %d = %x\n", x, (void *)this);
29 for (int i = 0; i < 3; i++)
31 for (int j = 0; j < 3; j++)
33 printf("&a[%d][%d] = %x\n", i, j, (void *)&array[i][j]);
36 // The count should be nine, if not, fail the test.