---
cases:
  - data:
      a:
        - 1
        - 2
        - 3
        - 4
    modules:
      - |
        package generated

        p {
          __local0__ = data.a[3]
          abs(-4, __local0__)
        }
    note: arithmetic/arity 1 ref dest
    query: data.generated.p = x
    want_result:
      - x: true
