diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-06-06 12:33:49 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-06-15 17:29:32 +0100 |
commit | 071d6e7dacceed190998c08bd291227760d6c7fb (patch) | |
tree | 6522d528142cfcc713d7d2471cd3dc643a918878 /testsuite | |
parent | 209021ca699245c7cf3219e422b42164d55adb81 (diff) | |
download | haskell-071d6e7dacceed190998c08bd291227760d6c7fb.tar.gz |
Add test for T21682
Fixes #21682
(cherry picked from commit 1fbba97b17d7bbfada0d9620d126f84b8d57be2d)
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/driver/T21682.stderr | 3 | ||||
-rw-r--r-- | testsuite/tests/driver/all.T | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T21682.stderr b/testsuite/tests/driver/T21682.stderr new file mode 100644 index 0000000000..7820cbc46e --- /dev/null +++ b/testsuite/tests/driver/T21682.stderr @@ -0,0 +1,3 @@ + +on the commandline: error: [-Wunrecognised-warning-flags, -Werror=unrecognised-warning-flags] + unrecognised warning flag: -Wfoo diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T index 92fa6edceb..b7e7dbf59b 100644 --- a/testsuite/tests/driver/all.T +++ b/testsuite/tests/driver/all.T @@ -289,6 +289,7 @@ test('T16737', test('T17143', exit_code(1), run_command, ['{compiler} T17143.hs -S -fno-code']) test('T17786', unless(opsys('mingw32'), skip), makefile_test, []) test('T18369', normal, compile, ['-O']) +test('T21682', normal, compile_fail, ['-Werror=unrecognised-warning-flags -Wfoo']) test('FullGHCVersion', normal, compile_and_run, ['-package ghc-boot']) test('OneShotTH', normal, makefile_test, []) test('T17481', normal, makefile_test, []) |