summaryrefslogtreecommitdiff
path: root/testsuite/tests/haddock/should_compile_noflag_haddock/haddockC038.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/haddock/should_compile_noflag_haddock/haddockC038.hs')
-rw-r--r--testsuite/tests/haddock/should_compile_noflag_haddock/haddockC038.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/haddock/should_compile_noflag_haddock/haddockC038.hs b/testsuite/tests/haddock/should_compile_noflag_haddock/haddockC038.hs
new file mode 100644
index 0000000000..b839bdee22
--- /dev/null
+++ b/testsuite/tests/haddock/should_compile_noflag_haddock/haddockC038.hs
@@ -0,0 +1,14 @@
+module UnamedConstructorStrictFields where
+-- See #15206
+
+data A = A
+data B = B
+
+data Foo = MkFoo
+ {-# UNPACK #-} !A -- ^ Unpacked strict field
+ B
+
+data Bar =
+ {-# UNPACK #-} !A -- ^ Unpacked strict field
+ :%%
+ B