diff options
Diffstat (limited to 'testsuite/tests/driver/T4931.hs')
-rw-r--r-- | testsuite/tests/driver/T4931.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T4931.hs b/testsuite/tests/driver/T4931.hs new file mode 100644 index 0000000000..08b583a68d --- /dev/null +++ b/testsuite/tests/driver/T4931.hs @@ -0,0 +1,8 @@ +{-# LANGUAGE CPP #-} +{-# OPTIONS_GHC -DFOO="bar baz" #-} +main = print FOO + +-- Test that GHC can compile option pragmas containing spaces. +-- When a .hsc contains `#define FOO "bar baz"`, hsc2hs emits: +-- +-- {-# OPTIONS_GHC -optc-DFOO="bar baz" #-} |