re PR c++/44648 (missing -Wunused warning on a const variable in if statement)

PR c++/44648
	* g++.dg/warn/Wunused-var-35.C: Remove xfail.

From-SVN: r270572
This commit is contained in:
Jakub Jelinek 2019-04-25 14:18:07 +02:00 committed by Jakub Jelinek
parent cecd06a9ea
commit 60a893dbb4
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2019-04-25 Jakub Jelinek <jakub@redhat.com>
PR c++/44648
* g++.dg/warn/Wunused-var-35.C: Remove xfail.
2019-04-25 Richard Biener <rguenther@suse.de>
PR middle-end/90194

View File

@ -11,9 +11,8 @@ int main()
else
return 1;
if (const bool b2 = 1) // { dg-warning "\\\[-Wunused-variable\\\]" "bug" { xfail c++98_only } }
if (const bool b2 = 1) // { dg-warning "\\\[-Wunused-variable\\\]" }
return 0;
else
return 1;
}