array_dim.cvc 122 B

1234567891011
  1. int dims = 0;
  2. int dim() {
  3. dims = dims + 1;
  4. return 10;
  5. }
  6. void foo() {
  7. int[10, dim()] arr;
  8. arr[1, 0] = 1;
  9. }