diff options
author | Sebastian Graf <sebastian.graf@kit.edu> | 2020-12-14 08:31:53 +0100 |
---|---|---|
committer | Sebastian Graf <sebastian.graf@kit.edu> | 2020-12-14 08:31:58 +0100 |
commit | 4ac7ef04f685c7afb0f490ae3c485934b773e3bd (patch) | |
tree | b87bbc24cabc18bc12838219dddc24f5270afb59 | |
parent | c647763954717d9853d08ff04eece7f1ddeae15c (diff) | |
download | haskell-4ac7ef04f685c7afb0f490ae3c485934b773e3bd.tar.gz |
Add regression test for #19053wip/T19053
-rw-r--r-- | testsuite/tests/stranal/should_run/T19053.hs | 8 | ||||
-rw-r--r-- | testsuite/tests/stranal/should_run/all.T | 1 |
2 files changed, 9 insertions, 0 deletions
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, ['']) |