-- cue.mod/modules.cue --
-- no_package.cue --
@extern("testfn")


Foo: _ @extern(file1.xx, abi=c, sig="func(int)int")

-- out/extern --
extern attribute without package clause:
    ./no_package.cue:1:1
