summaryrefslogtreecommitdiff
path: root/tests/cffi.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-02 11:27:26 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-02 11:27:26 -0400
commit4b3399b59d17ed32c8c2800267b8c59fd0378f21 (patch)
tree9918a955a048024a07e68cd466c19c0dbf56f867 /tests/cffi.ur
parent2307ccdcc5eb4ddfe719ddcbea999f7705ec79c3 (diff)
Successfully influenced effectful-ness status of FFI func
Diffstat (limited to 'tests/cffi.ur')
-rw-r--r--tests/cffi.ur5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cffi.ur b/tests/cffi.ur
index 2e20199b..cc93b8f5 100644
--- a/tests/cffi.ur
+++ b/tests/cffi.ur
@@ -1,3 +1,8 @@
+fun effect () =
+ Test.print;
+ return <xml/>
+
fun main () = return <xml><body>
{[Test.out (Test.frob (Test.create "Hello ") "world!")]}
+ <form><submit action={effect}/></form>
</body></xml>