testsuite: Add testcase for #12355
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 1 Jul 2016 12:29:54 +0000 (14:29 +0200)
committerBen Gamari <ben@smart-cactus.org>
Mon, 4 Jul 2016 21:35:25 +0000 (23:35 +0200)
Test Plan: Validate

Reviewers: austin, osa1

Reviewed By: osa1

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2377

GHC Trac Issues: #12355

testsuite/tests/codeGen/should_compile/T12355.hs [new file with mode: 0644]
testsuite/tests/codeGen/should_compile/all.T

diff --git a/testsuite/tests/codeGen/should_compile/T12355.hs b/testsuite/tests/codeGen/should_compile/T12355.hs
new file mode 100644 (file)
index 0000000..9ad9ebe
--- /dev/null
@@ -0,0 +1,7 @@
+{-# LANGUAGE GHCForeignImportPrim, UnliftedFFITypes, MagicHash #-}
+
+module Lib where
+
+import GHC.Prim
+
+foreign import prim f1 :: Int# -> Int#
index 57ae5eb..2fac947 100644 (file)
@@ -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, [''])