[project @ 2001-08-10 13:55:58 by simonmar]
authorsimonmar <unknown>
Fri, 10 Aug 2001 13:55:58 +0000 (13:55 +0000)
committersimonmar <unknown>
Fri, 10 Aug 2001 13:55:58 +0000 (13:55 +0000)
Test for identifiers containing non-ASCII characters.

ghc/tests/codeGen/should_run/cg050.hs [new file with mode: 0644]
ghc/tests/codeGen/should_run/cg050.stdout [new file with mode: 0644]

diff --git a/ghc/tests/codeGen/should_run/cg050.hs b/ghc/tests/codeGen/should_run/cg050.hs
new file mode 100644 (file)
index 0000000..e505938
--- /dev/null
@@ -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 (file)
index 0000000..dd9562d
--- /dev/null
@@ -0,0 +1 @@
+"h\233ll\246_w\242rld\n"