PR testsuite/82988 - g++.dg/cpp0x/lambda/lambda-switch.C fail
authorMartin Sebor <msebor@redhat.com>
Wed, 15 Nov 2017 20:57:10 +0000 (20:57 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 15 Nov 2017 20:57:10 +0000 (13:57 -0700)
gcc/testsuite/ChangeLog:

PR testsuite/82988
* g++.dg/cpp0x/lambda/lambda-switch.C: Prune unimportant warning.

From-SVN: r254786

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C

index 4a7c8606857cfe22bc05f2d6b973f934bdddf795..676a2c4e8449e0ba335176a6a3c6df74aa91033f 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-15  Martin Sebor  <msebor@redhat.com>
+
+       PR testsuite/82988
+       * g++.dg/cpp0x/lambda/lambda-switch.C: Prune unimportant warning.
+
 2017-11-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/82990
@@ -27,7 +32,7 @@
 
        PR fortran/78240
        gfortran.dg/pr78240.f90: Prune run-on errors.
-       
+
 2017-11-15  Bin Cheng  <bin.cheng@arm.com>
 
        PR tree-optimization/82726
index ee87defac9f73d20e36a28e36ea55a22eea65ade..328410e29aa121e9d1f9fc53233a9016e895f328 100644 (file)
@@ -16,7 +16,7 @@ main ()
              break;            // { dg-error "break" }
            }
          };
-         l = []()              // { dg-warning "statement will never be executed" }
+         l = []()
            {
            case 3:             // { dg-error "case" }
              break;            // { dg-error "break" }
@@ -24,3 +24,5 @@ main ()
        }
     }
 }
+
+// { dg-prune-output "\\\[-Wswitch-unreachable]" }