diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-05-24 21:14:18 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-06-01 06:33:37 -0400 |
commit | 9a99a1787da1dda15c6da7509ab678f4131c7d68 (patch) | |
tree | dd2e954e7776a1943243363d35d75afffd72fc5a | |
parent | b0c1f2a619855a6fa22021a3118365c49f4cc0c4 (diff) | |
download | haskell-9a99a1787da1dda15c6da7509ab678f4131c7d68.tar.gz |
testsuite: Add test for desugaring of PostfixOperators
-rw-r--r-- | testsuite/tests/deSugar/should_run/DsPostfixOperators.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/deSugar/should_run/DsPostfixOperators.stdout | 2 | ||||
-rw-r--r-- | testsuite/tests/deSugar/should_run/all.T | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_run/DsPostfixOperators.hs b/testsuite/tests/deSugar/should_run/DsPostfixOperators.hs new file mode 100644 index 0000000000..ecff67a6eb --- /dev/null +++ b/testsuite/tests/deSugar/should_run/DsPostfixOperators.hs @@ -0,0 +1,5 @@ +{-# LANGUAGE PostfixOperators #-} + +main :: IO () +main = do + print (42 `negate`) diff --git a/testsuite/tests/deSugar/should_run/DsPostfixOperators.stdout b/testsuite/tests/deSugar/should_run/DsPostfixOperators.stdout new file mode 100644 index 0000000000..f5b39beb55 --- /dev/null +++ b/testsuite/tests/deSugar/should_run/DsPostfixOperators.stdout @@ -0,0 +1,2 @@ +-42 + diff --git a/testsuite/tests/deSugar/should_run/all.T b/testsuite/tests/deSugar/should_run/all.T index 009b0a4686..8d53568be9 100644 --- a/testsuite/tests/deSugar/should_run/all.T +++ b/testsuite/tests/deSugar/should_run/all.T @@ -57,6 +57,7 @@ test('T10215', normal, compile_and_run, ['']) test('DsStrictData', normal, compile_and_run, ['']) test('DsStrict', normal, compile_and_run, ['']) test('DsStrictLet', normal, compile_and_run, ['-O']) +test('DsPostfixOperators', normal, compile_and_run, ['']) test('T11193', exit_code(1), compile_and_run, ['']) test('T11572', exit_code(1), compile_and_run, ['']) test('T11601', exit_code(1), compile_and_run, ['']) |