Handling for cross-package imports of "export name". (#3967)

Starts warning on duplicate "export name" because I'm updating name
lookup to make it work.

Need to think harder about how to handle cross-package "export import".
But adding some failing tests to sketch out what *should* work.
This commit is contained in:
Jon Ross-Perkins
2024-05-21 21:02:09 +00:00
committed by GitHub
parent 422639685b
commit 57c0a6c076
10 changed files with 475 additions and 16 deletions
@@ -61,7 +61,7 @@ var f: () = F();
// CHECK:STDOUT:
// CHECK:STDOUT: file {
// CHECK:STDOUT: package: <namespace> = namespace [template] {
// CHECK:STDOUT: .F = %import_ref
// CHECK:STDOUT: .F = %F
// CHECK:STDOUT: }
// CHECK:STDOUT: %import_ref: F = import_ref ir1, inst+1, loaded [template = constants.%struct]
// CHECK:STDOUT: %F: F = export F, %import_ref [template = constants.%struct]