Update examples
This commit is contained in:
19
testsuite/makewith/should_fail_0/prog/Main.hs
Normal file
19
testsuite/makewith/should_fail_0/prog/Main.hs
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
conf = "../Plugin.in"
|
||||
stub = "../Plugin.stub"
|
||||
|
||||
main = do
|
||||
status <- makeWith conf stub ["-i../api"]
|
||||
case status of
|
||||
MakeFailure e -> putStrLn "make failed"
|
||||
MakeSuccess _ o -> do
|
||||
m_v <- load o ["../api"] [] "resource"
|
||||
v <- case m_v of
|
||||
LoadSuccess _ v -> return v
|
||||
_ -> error "load failed"
|
||||
putStrLn $ (function v)
|
||||
makeCleaner o
|
||||
|
1
testsuite/makewith/should_fail_0/prog/expected
Normal file
1
testsuite/makewith/should_fail_0/prog/expected
Normal file
@ -0,0 +1 @@
|
||||
make failed
|
Reference in New Issue
Block a user