summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_compile/T9975b.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2015-01-20 17:31:54 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2015-01-20 17:31:54 +0000
commit3992a6e2d0fa2f046baaf14c264d21acf9540c83 (patch)
treed008826956e38c120a393a9f9b84ebfe6cbc6170 /testsuite/tests/patsyn/should_compile/T9975b.hs
parent387f1d1ec334788c3e891e9304d427bc804998f4 (diff)
downloadhaskell-3992a6e2d0fa2f046baaf14c264d21acf9540c83.tar.gz
Test Trac #9975
Diffstat (limited to 'testsuite/tests/patsyn/should_compile/T9975b.hs')
-rw-r--r--testsuite/tests/patsyn/should_compile/T9975b.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/patsyn/should_compile/T9975b.hs b/testsuite/tests/patsyn/should_compile/T9975b.hs
new file mode 100644
index 0000000000..d36f54d92a
--- /dev/null
+++ b/testsuite/tests/patsyn/should_compile/T9975b.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE PatternSynonyms #-}
+module T9975b where
+
+data Test = Test { x :: Int }
+pattern PTest wat = Test { x = wat }
+