PR c++/44648 - missing -Wunused warning on a const variable in if statement
authorMartin Sebor <msebor@redhat.com>
Sun, 3 Feb 2019 21:48:27 +0000 (21:48 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Sun, 3 Feb 2019 21:48:27 +0000 (14:48 -0700)
commit0b841214a8c8a56d4c4d391fddf780faba3f5748
treefe1a6d5131772f7c81ca4b0ac8ed6fbe7f14bdd5
parent6090f915917f433509168b20c2ea9c3b4096c024
PR c++/44648 - missing -Wunused warning on a const variable in if statement

gcc/testsuite/ChangeLog:
* g++.dg/warn/Wunused-var-35.C: New test.

From-SVN: r268503
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-var-35.C [new file with mode: 0644]