summaryrefslogtreecommitdiff
path: root/testsuite/tests/rts/T2615.hs
blob: 6a81185e9ef28c8783f128fd63d7e3407e984e57 (plain)
1
2
3
4
5
6
7
8
9
10
import GHCi.ObjLink

library_name = "libfoo_script_T2615.so" -- this is really a linker script

main = do
  initObjLinker
  result <- loadDLL library_name
  case result of
    Nothing -> putStrLn (library_name ++ " loaded successfully")
    Just x  -> putStrLn ("error: " ++ x)