Commit 206d8779 by David Malcolm Committed by David Malcolm

spellcheck.c: add another selftest for PR c/82967

This adds another testcase for overzealous spellchecker suggestions,
reported on IRC.

gcc/ChangeLog:
	PR c/82967
	* spellcheck.c (selftest::test_suggestions): Add another
	assertion.

From-SVN: r266798
parent f51f2018
2018-12-04 David Malcolm <dmalcolm@redhat.com>
PR c/82967
* spellcheck.c (selftest::test_suggestions): Add another
assertion.
2018-12-04 Martin Sebor <msebor@redhat.com>
* doc/extend.texi (__builtin_has_attribute): Fix typo.
......@@ -378,6 +378,9 @@ test_suggestions ()
ASSERT_NOT_SUGGESTED_FOR ("__DATE__", "__i386__");
// dist == 4, max_length == min_length == 8
ASSERT_NOT_SUGGESTED_FOR ("start_input_device", "InputDevice");
// dist == 9, max_length == 18, min_length == 11
}
/* Verify that find_closest_string is sane. */
......
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