summaryrefslogtreecommitdiff
path: root/testsuite/tests/rts/T2615.hs
blob: 53c2d13cebcd6baed5dcc048db327ba3e561617f (plain)
1
2
3
4
5
6
7
8
9
10
import 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)