exec cue eval pkg.cue -H
cmp stdout expect-stdout

exec cue eval -H
cmp stdout expect-stdout

exec cue eval file.cue -H
cmp stdout expect-stdout

-- pkg.cue --
package pkg

_top: 1

a: _h0: int

#foo: {
    _h1: string
}

{
    _h2: string
}

-- file.cue --
_top: 1

a: _h0: int

#foo: {
    _h1: string
}

{
    _h2: string
}

-- expect-stdout --
_top: 1
a: {
    _h0: int
}
#foo: {
    _h1: string
}
_h2: string
