summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/cgrun063.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/codeGen/should_run/cgrun063.hs')
-rw-r--r--testsuite/tests/codeGen/should_run/cgrun063.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/codeGen/should_run/cgrun063.hs b/testsuite/tests/codeGen/should_run/cgrun063.hs
new file mode 100644
index 0000000000..14f3cb8d14
--- /dev/null
+++ b/testsuite/tests/codeGen/should_run/cgrun063.hs
@@ -0,0 +1,20 @@
+
+{-
+Check that we aren't making gcc misinterpret our strings as trigraphs.
+Trac #2968.
+http://gcc.gnu.org/onlinedocs/cpp/Initial-processing.html
+-}
+
+module Main where
+
+main :: IO ()
+main = do putStrLn "??("
+ putStrLn "??)"
+ putStrLn "??<"
+ putStrLn "??>"
+ putStrLn "??="
+ putStrLn "??/"
+ putStrLn "??'"
+ putStrLn "??!"
+ putStrLn "??-"
+