From: Jakub Jelinek Date: Wed, 11 Jan 2017 11:47:30 +0000 (+0100) Subject: decomp4.C (test): Use 2 identifier decomposition instead of just 1 for the decomposit... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=947f51d61b134a782d0405d827bce18d9a7e01fa;p=gcc.git decomp4.C (test): Use 2 identifier decomposition instead of just 1 for the decomposition from... * g++.dg/cpp1z/decomp4.C (test): Use 2 identifier decomposition instead of just 1 for the decomposition from struct C. From-SVN: r244312 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c892d161ea0..494924df47f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-01-11 Jakub Jelinek + + * g++.dg/cpp1z/decomp4.C (test): Use 2 identifier decomposition + instead of just 1 for the decomposition from struct C. + 2017-01-11 Eric Botcazou * gcc.c-torture/execute/20170111-1.c: New test. diff --git a/gcc/testsuite/g++.dg/cpp1z/decomp4.C b/gcc/testsuite/g++.dg/cpp1z/decomp4.C index 95a02ec27df..bc85263e986 100644 --- a/gcc/testsuite/g++.dg/cpp1z/decomp4.C +++ b/gcc/testsuite/g++.dg/cpp1z/decomp4.C @@ -18,7 +18,7 @@ test (A &a, B &b, C &c, D &d, E &e, F &f, G &g, H &h, I &i) // { dg-warning "decomposition declaration only available with -std=c..1z or -std=gnu..1z" "" { target c++14_down } .-1 } auto [ k ] { b }; // { dg-error "cannot decompose class type 'B' because it has an anonymous union member" } // { dg-warning "decomposition declaration only available with -std=c..1z or -std=gnu..1z" "" { target c++14_down } .-1 } - auto [ l ] = c; // { dg-error "cannot decompose non-public member 'C::b' of 'C'" } + auto [ l, l2 ] = c; // { dg-error "cannot decompose non-public member 'C::b' of 'C'" } // { dg-warning "decomposition declaration only available with -std=c..1z or -std=gnu..1z" "" { target c++14_down } .-1 } auto [ m ] = d; // { dg-warning "decomposition declaration only available with -std=c..1z or -std=gnu..1z" "" { target c++14_down } } auto [ n ] { e }; // { dg-error "cannot decompose non-public member 'E::a' of 'E'" }