diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-11-09 12:17:57 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-11-09 12:32:08 +0000 |
commit | 7346a019517822b3a1bf3f26535c7c1f83a12461 (patch) | |
tree | 54427682497667ccc2d823e42a8ff45ef367d368 /testsuite/tests/driver/fat-iface/T22405/T22405b.stdout | |
parent | 080fffa1015bcc0cff8ab4ad1eeb507fb7a13383 (diff) | |
download | haskell-7346a019517822b3a1bf3f26535c7c1f83a12461.tar.gz |
Add special case for :Main module in `GHC.IfaceToCore.mk_top_id`wip/t22405
See Note [Root-main Id]
The `:Main` special binding is actually defined in the current module
(hence don't go looking for it externally) but the module name is rOOT_MAIN
rather than the current module so we need this special case.
There was already some similar logic in `GHC.Rename.Env` for
External Core, but now the "External Core" is in interface files it
needs to be moved here instead.
Fixes #22405
Diffstat (limited to 'testsuite/tests/driver/fat-iface/T22405/T22405b.stdout')
-rw-r--r-- | testsuite/tests/driver/fat-iface/T22405/T22405b.stdout | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/driver/fat-iface/T22405/T22405b.stdout b/testsuite/tests/driver/fat-iface/T22405/T22405b.stdout new file mode 100644 index 0000000000..f88f60dc5d --- /dev/null +++ b/testsuite/tests/driver/fat-iface/T22405/T22405b.stdout @@ -0,0 +1,2 @@ +[1 of 2] Compiling Main2 ( Main2.hs, Main2.o, interpreted ) +[2 of 2] Linking Main2 |