[project @ 2001-02-27 14:37:17 by rrt]
authorrrt <unknown>
Tue, 27 Feb 2001 14:37:17 +0000 (14:37 +0000)
committerrrt <unknown>
Tue, 27 Feb 2001 14:37:17 +0000 (14:37 +0000)
Update ffi001.stdout (was simply wrong) and change fed001.hs in line with
library changes.

ghc/tests/ccall/should_run/fed001.hs
ghc/tests/ccall/should_run/ffi001.stdout

index eab8987..57a5281 100644 (file)
@@ -1,8 +1,9 @@
 import Foreign
 import Monad
+import Addr
 
 newtype XPtr a = XPtr Addr
-unXPtr (XPtr x) = x
+unXPtr (XPtr (A# x)) = x
 
 type CInt  = Int32
 type CSize = Word32
index 3758fb7..695e5e7 100644 (file)
@@ -1,16 +1 @@
-{-# OPTIONS -fglasgow-exts #-}
-
--- !!! A simple FFI test
--- This one provoked a bogus renamer error in 4.08.1:
---     
-module Main where
-
-import Foreign
-
-foreign export ccall "gccd" mygcd :: Int -> Int -> Int 
-
-main = putStrLn "No bug"
-
-mygcd a b = if (a==b) then a 
-           else if (a<b) then mygcd a (b-a)
-           else mygcd (a-b) a
+No bug