---
cases:
  - data: {}
    modules:
      - |
        package generated

        p[x] {
          __local0__ = [1, 2, 3]
          __local0__[x]
        }
    note: indirectreferences/array
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - 0
          - 1
          - 2
