Commit fc2ca00e authored by Ben Gamari's avatar Ben Gamari 🐢

testsuite: Add test for #17786

This isn't pretty but it's perhaps better than nothing.
parent 89745769
Pipeline #16318 passed with stages
in 912 minutes and 36 seconds
......@@ -674,3 +674,8 @@ T14452:
"$(TEST_HC)" $(TEST_HC_OPTS) -v -c -O2 T14452.hs 2>&1 | grep 'O3' \
| awk 'NF{print $$NF; exit}' | sed 's/\"//g'
# awk: extract last word of line, sed: remove quotes
.PHONY: T17786
T17786:
# N.B. Check for the presence of caret diagnostics.
"$(TEST_HC)" $(TEST_HC_OPTS) -v $(shell cygpath -w -a T17786.hs) 2>&1 | grep --quiet '3 |'
{-# LANGUAGE CPP #-}
module T17786 where
#if defined(FOO)
foo = 42
......@@ -278,3 +278,4 @@ test('T16737',
compile_and_run, ['-optP=-isystem -optP=T16737include'])
test('T17143', exit_code(1), run_command, ['{compiler} T17143.hs -S -fno-code'])
test('T17786', [unless(opsys('mingw32'), skip), exit_code(1)], makefile_test, [])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment