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

package foo


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

Rename: _ @testfn(file1.xx, name=Emaner, abi=c, sig="func(int)int")

"Quoted-Field": _ @testfn(file1.xx, name=Emaner, abi=c, sig="func(int)int")

-- file2.cue --
@extern("testfn")

package foo


Bar: {
	@other()
	@testfn(file2.xx, abi=c, sig="func(int)int")
	_
}

-- extern/out --
-- out/extern --
{
	Bar:            impl2
	Foo:            implFoo1
	Rename:         implEmaner1
	"Quoted-Field": implEmaner1
}
