Commit 60a893db by Jakub Jelinek Committed by Jakub Jelinek

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
parent cecd06a9
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
......
......@@ -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;
}
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