[project @ 2000-12-01 12:38:10 by simonpj]
authorsimonpj <unknown>
Fri, 1 Dec 2000 12:38:10 +0000 (12:38 +0000)
committersimonpj <unknown>
Fri, 1 Dec 2000 12:38:10 +0000 (12:38 +0000)
Add test for special Ids

ghc/tests/reader/should_compile/read029.hs [new file with mode: 0644]

diff --git a/ghc/tests/reader/should_compile/read029.hs b/ghc/tests/reader/should_compile/read029.hs
new file mode 100644 (file)
index 0000000..1a9e5c1
--- /dev/null
@@ -0,0 +1,14 @@
+-- !!! Special Ids and ops
+
+-- The special ids 'as', 'qualified' and 'hiding' should be 
+-- OK in both qualified and unqualified form.
+-- Ditto special ops
+
+module ShouldCompile where
+import Prelude hiding ( (-) )
+
+as       = ShouldCompile.as
+hiding   = ShouldCompile.hiding
+qualified = ShouldCompile.qualified
+x!y      = x ShouldCompile.! y
+x-y      = x ShouldCompile.- y