diff options
author | nineonine <mail4chemik@gmail.com> | 2021-08-25 00:32:21 -0700 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-09-11 08:55:06 -0400 |
commit | f987ec1a77beced08850142d7e38b0a39f05c3e6 (patch) | |
tree | 1739b6acad2693d03df5abefa9c0a739a12e01ae /testsuite/tests/ghc-api | |
parent | 089de88ef5215de0f2db4c4babc556ac43f8232e (diff) | |
download | haskell-f987ec1a77beced08850142d7e38b0a39f05c3e6.tar.gz |
Add test for #18181
Diffstat (limited to 'testsuite/tests/ghc-api')
-rw-r--r-- | testsuite/tests/ghc-api/T18181.hs | 9 | ||||
-rw-r--r-- | testsuite/tests/ghc-api/all.T | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/T18181.hs b/testsuite/tests/ghc-api/T18181.hs new file mode 100644 index 0000000000..082c685fda --- /dev/null +++ b/testsuite/tests/ghc-api/T18181.hs @@ -0,0 +1,9 @@ +import GHC +import System.Environment + +main = do + (libdir:_) <- getArgs + GHC.runGhcT (Just libdir) $ do + df <- getSessionDynFlags + setSessionDynFlags $ df { ghcLink = LinkInMemory } + load LoadAllTargets diff --git a/testsuite/tests/ghc-api/all.T b/testsuite/tests/ghc-api/all.T index 9ee14ba3ae..8eecd3c799 100644 --- a/testsuite/tests/ghc-api/all.T +++ b/testsuite/tests/ghc-api/all.T @@ -20,6 +20,11 @@ test('T9015', extra_run_opts('"' + config.libdir + '"'), test('T11579', extra_run_opts('"' + config.libdir + '"'), compile_and_run, ['-package ghc']) test('T12099', normal, compile_and_run, ['-package ghc']) +test('T18181', + [ extra_run_opts('"' + config.libdir + '"'), + req_rts_linker ], + compile_and_run, + ['-package ghc']) test('T18522-dbg-ppr', extra_run_opts('"' + config.libdir + '"'), compile_and_run, |