diff options
Diffstat (limited to 'testsuite/tests/javascript/T23346.hs')
-rw-r--r-- | testsuite/tests/javascript/T23346.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/javascript/T23346.hs b/testsuite/tests/javascript/T23346.hs new file mode 100644 index 0000000000..60fb2b8847 --- /dev/null +++ b/testsuite/tests/javascript/T23346.hs @@ -0,0 +1,18 @@ +{-# LANGUAGE CPP #-} + +module Main where + +main :: IO () +main = print (correct_host && correct_arch) + +#ifdef ghcjs_HOST_OS +correct_host = True +#else +correct_host = False +#endif + +#ifdef javascript_HOST_ARCH +correct_arch = True +#else +correct_arch = False +#endif |