From: Martin Sebor Date: Wed, 15 Nov 2017 20:57:10 +0000 (+0000) Subject: PR testsuite/82988 - g++.dg/cpp0x/lambda/lambda-switch.C fail X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb8e79827943a491ccf190e9d05270ace2d64827;p=gcc.git PR testsuite/82988 - g++.dg/cpp0x/lambda/lambda-switch.C fail gcc/testsuite/ChangeLog: PR testsuite/82988 * g++.dg/cpp0x/lambda/lambda-switch.C: Prune unimportant warning. From-SVN: r254786 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4a7c8606857..676a2c4e844 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-11-15 Martin Sebor + + PR testsuite/82988 + * g++.dg/cpp0x/lambda/lambda-switch.C: Prune unimportant warning. + 2017-11-15 H.J. Lu PR target/82990 @@ -27,7 +32,7 @@ PR fortran/78240 gfortran.dg/pr78240.f90: Prune run-on errors. - + 2017-11-15 Bin Cheng PR tree-optimization/82726 diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C index ee87defac9f..328410e29aa 100644 --- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C @@ -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]" }