aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/getEnvironment01.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/getEnvironment01.hs')
-rw-r--r--tests/getEnvironment01.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/getEnvironment01.hs b/tests/getEnvironment01.hs
new file mode 100644
index 0000000..fb50fab
--- /dev/null
+++ b/tests/getEnvironment01.hs
@@ -0,0 +1,8 @@
+
+-- test for trac #781 (GHCi on x86_64, cannot link to static data in
+-- shared libs)
+
+import System.Posix.Env
+
+main = getEnvironment >>= (print . (0 <=) . length)
+