[project @ 2000-09-06 13:30:48 by simonmar]
authorsimonmar <unknown>
Wed, 6 Sep 2000 13:30:48 +0000 (13:30 +0000)
committersimonmar <unknown>
Wed, 6 Sep 2000 13:30:48 +0000 (13:30 +0000)
add test for typedef-conflict with f.i.d.

ghc/tests/ccall/should_compile/Makefile
ghc/tests/ccall/should_compile/cc010.hs [new file with mode: 0644]

index c6acaf6..829e80e 100644 (file)
@@ -10,5 +10,6 @@ SRC_HC_OPTS += -dcore-lint -fglasgow-exts
 cc004_HC_OPTS = -fvia-C
 cc005_HC_OPTS = -fvia-C
 cc006_HC_OPTS = -fvia-C -fno-prune-tydecls
+cc010_HC_OPTS = -fvia-C
 
 include $(TOP)/mk/target.mk
diff --git a/ghc/tests/ccall/should_compile/cc010.hs b/ghc/tests/ccall/should_compile/cc010.hs
new file mode 100644 (file)
index 0000000..ff3ad1c
--- /dev/null
@@ -0,0 +1,5 @@
+module ShouldCompile where
+import Foreign
+foreign import dynamic imp :: Addr -> Int
+f1 a = imp a + 1
+f2 a = imp a + 2