C: fix-it hint for removing stray semicolons
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 25 Apr 2017 14:03:55 +0000 (14:03 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 25 Apr 2017 14:03:55 +0000 (14:03 +0000)
commit1c4ea66f24bc3801448d5c88847fc97d4e2767ee
tree1e26f9c2f74735c269776ad691d99a69ba534766
parente0666fc62f436b35e9ad3b806cb081d95f2f66c6
C: fix-it hint for removing stray semicolons

gcc/c/ChangeLog:
* c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
hint for removing extra semicolon.

gcc/testsuite/ChangeLog:
* gcc.dg/semicolon-fixits.c: New test case.

From-SVN: r247243
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/semicolon-fixits.c [new file with mode: 0644]