re PR c++/44648 (missing -Wunused warning on a const variable in if statement)
authorJakub Jelinek <jakub@redhat.com>
Thu, 25 Apr 2019 12:18:07 +0000 (14:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 25 Apr 2019 12:18:07 +0000 (14:18 +0200)
PR c++/44648
* g++.dg/warn/Wunused-var-35.C: Remove xfail.

From-SVN: r270572

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-var-35.C

index f1291f11c52d8db4a1c188096e9077d4fd151bc6..60357ebb1242f36d7b0f247854f684869931c3d8 100644 (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
index 6e1308c8e03b24c1ff89caa8c458a94d03e75630..e257e63125a27f920c22ee2a3f83dd35572751bd 100644 (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;
 }
-