diff options
Diffstat (limited to 'testsuite/tests/simplCore/should_compile/T4903.hs')
-rw-r--r-- | testsuite/tests/simplCore/should_compile/T4903.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T4903.hs b/testsuite/tests/simplCore/should_compile/T4903.hs new file mode 100644 index 0000000000..70250d1d14 --- /dev/null +++ b/testsuite/tests/simplCore/should_compile/T4903.hs @@ -0,0 +1,10 @@ +module T4903 where + +import T4903a + +{-# SPECIALIZE eq :: TreeF Tree -> Tree -> Bool #-} +-- The pragma is only problematic if it is in a separate module + +f :: Bool +-- If we don't use eq, there is no problem +f = eq Tree tree |