[commit: ghc] master: testsuite: Add testcase for #12355 (afec447)

git at git.haskell.org git at git.haskell.org
Mon Jul 4 21:31:31 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/afec447cde1f97438bbc5bf7a31000e948c721eb/ghc

>---------------------------------------------------------------

commit afec447cde1f97438bbc5bf7a31000e948c721eb
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Fri Jul 1 14:29:54 2016 +0200

    testsuite: Add testcase for #12355
    
    Test Plan: Validate
    
    Reviewers: austin, osa1
    
    Reviewed By: osa1
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2377
    
    GHC Trac Issues: #12355


>---------------------------------------------------------------

afec447cde1f97438bbc5bf7a31000e948c721eb
 testsuite/tests/codeGen/should_compile/T12355.hs | 7 +++++++
 testsuite/tests/codeGen/should_compile/all.T     | 1 +
 2 files changed, 8 insertions(+)

diff --git a/testsuite/tests/codeGen/should_compile/T12355.hs b/testsuite/tests/codeGen/should_compile/T12355.hs
new file mode 100644
index 0000000..9ad9ebe
--- /dev/null
+++ b/testsuite/tests/codeGen/should_compile/T12355.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE GHCForeignImportPrim, UnliftedFFITypes, MagicHash #-}
+
+module Lib where
+
+import GHC.Prim
+
+foreign import prim f1 :: Int# -> Int#
diff --git a/testsuite/tests/codeGen/should_compile/all.T b/testsuite/tests/codeGen/should_compile/all.T
index 57ae5eb..2fac947 100644
--- a/testsuite/tests/codeGen/should_compile/all.T
+++ b/testsuite/tests/codeGen/should_compile/all.T
@@ -37,3 +37,4 @@ test('T10667', [ when((arch('powerpc64') or arch('powerpc64le')),
                       expect_broken(11261))],
      compile, ['-g'])
 test('T12115', normal, compile, [''])
+test('T12355', expect_broken(12355), compile, [''])



More information about the ghc-commits mailing list