From 4ac7ef04f685c7afb0f490ae3c485934b773e3bd Mon Sep 17 00:00:00 2001 From: Sebastian Graf Date: Mon, 14 Dec 2020 08:31:53 +0100 Subject: Add regression test for #19053 --- testsuite/tests/stranal/should_run/T19053.hs | 8 ++++++++ testsuite/tests/stranal/should_run/all.T | 1 + 2 files changed, 9 insertions(+) create mode 100644 testsuite/tests/stranal/should_run/T19053.hs diff --git a/testsuite/tests/stranal/should_run/T19053.hs b/testsuite/tests/stranal/should_run/T19053.hs new file mode 100644 index 0000000000..883a4ec86c --- /dev/null +++ b/testsuite/tests/stranal/should_run/T19053.hs @@ -0,0 +1,8 @@ +import Data.List (group) +import System.Exit (exitFailure, exitSuccess) + +main :: IO () +main = do + _ <- getContents + if last (group "a") == "a" then exitSuccess else exitFailure + diff --git a/testsuite/tests/stranal/should_run/all.T b/testsuite/tests/stranal/should_run/all.T index 341d8e2639..e28b0ef7ee 100644 --- a/testsuite/tests/stranal/should_run/all.T +++ b/testsuite/tests/stranal/should_run/all.T @@ -26,3 +26,4 @@ test('T14171', [expect_broken(14171), exit_code(1)], compile_and_run, ['']) test('T14290', normal, compile_and_run, ['']) test('T14285', normal, multimod_compile_and_run, ['T14285', '']) test('T17676', normal, compile_and_run, ['']) +test('T19053', normal, compile_and_run, ['']) -- cgit v1.2.1