summaryrefslogtreecommitdiff
path: root/t/t4018/scheme-module
diff options
context:
space:
mode:
Diffstat (limited to 't/t4018/scheme-module')
-rw-r--r--t/t4018/scheme-module6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t4018/scheme-module b/t/t4018/scheme-module
new file mode 100644
index 0000000000..edfae0ebf7
--- /dev/null
+++ b/t/t4018/scheme-module
@@ -0,0 +1,6 @@
+(module A RIGHT
+ (export with-display-exception)
+ (extern (display-exception display-exception ChangeMe))
+ (def (with-display-exception thunk)
+ (with-catch (lambda (e) (display-exception e (current-error-port)) e)
+ thunk)))