From f5fc47d16726ad8cdee2e81bb0e13a1825988fb7 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 10 Aug 2001 13:55:58 +0000 Subject: [PATCH] [project @ 2001-08-10 13:55:58 by simonmar] Test for identifiers containing non-ASCII characters. --- ghc/tests/codeGen/should_run/cg050.hs | 10 ++++++++++ ghc/tests/codeGen/should_run/cg050.stdout | 1 + 2 files changed, 11 insertions(+) create mode 100644 ghc/tests/codeGen/should_run/cg050.hs create mode 100644 ghc/tests/codeGen/should_run/cg050.stdout diff --git a/ghc/tests/codeGen/should_run/cg050.hs b/ghc/tests/codeGen/should_run/cg050.hs new file mode 100644 index 0000000..e505938 --- /dev/null +++ b/ghc/tests/codeGen/should_run/cg050.hs @@ -0,0 +1,10 @@ +{-# OPTIONS -fvia-C #-} + +-- test that the code generator can correctly compile code with +-- non-ASCII characters in it. (5.00 couldn't). + +module Main (main, héllö_wòrld) where + +main = héllö_wòrld + +héllö_wòrld = print "héllö_wòrld\n" diff --git a/ghc/tests/codeGen/should_run/cg050.stdout b/ghc/tests/codeGen/should_run/cg050.stdout new file mode 100644 index 0000000..dd9562d --- /dev/null +++ b/ghc/tests/codeGen/should_run/cg050.stdout @@ -0,0 +1 @@ +"h\233ll\246_w\242rld\n" -- 1.7.10.4