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

package foo


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

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

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

package foo


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

-- extern/out --
-- out/extern --
{
	Bar:    implBar2
	Foo:    implFoo1
	Rename: implEmaner1
}
