Mark switch expression as used to avoid bogus warning
authorJeff Law <law@redhat.com>
Thu, 30 Jan 2020 21:09:41 +0000 (14:09 -0700)
committerJeff Law <law@redhat.com>
Thu, 30 Jan 2020 21:09:41 +0000 (14:09 -0700)
commitf9eb0973edb2b4eed4cdbba7105b8af7afe5b547
tree3f1610ca774902de4f92cdb9152a8f1ea944fb04
parent5fb07870fa4c86f529930bae76689ed5bdfcb192
Mark switch expression as used to avoid bogus warning

        PR c/88660
        * c-parser.c (c_parser_switch_statement): Make sure to request
        marking the switch expr as used.

        PR c/88660
        * gcc.dg/pr88660.c: New test.
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr88660.c [new file with mode: 0644]