Commit c6b18fed authored by Ian Lynagh's avatar Ian Lynagh

Add a test for trac #2968: C trigraphs

parent 9c9e2491
......@@ -70,6 +70,7 @@ test('cg060',
compile_and_run, [''])
test('cg061', normal, compile_and_run, [''])
test('cg062', normal, compile_and_run, [''])
test('cg063', normal, compile_and_run, [''])
test('1861', extra_run_opts('0'), compile_and_run, [''])
......
{-
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 "??-"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment