summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/rnfail048.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_fail/rnfail048.hs')
-rw-r--r--testsuite/tests/rename/should_fail/rnfail048.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/rnfail048.hs b/testsuite/tests/rename/should_fail/rnfail048.hs
new file mode 100644
index 0000000000..d1c8d73eb0
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/rnfail048.hs
@@ -0,0 +1,13 @@
+-- Trac #1888
+-- Pretty printing for pragmas
+
+module ShouldFail where
+
+{-# NOINLINE[1] foo #-}
+{-# NOINLINE[~2] foo #-}
+{-# NOINLINE foo #-}
+{-# INLINE[1] foo #-}
+{-# INLINE[~2] foo #-}
+{-# INLINE foo #-}
+
+foo n = foo (n+1)