diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-01-11 12:47:30 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-01-11 12:47:30 +0100 |
commit | 947f51d61b134a782d0405d827bce18d9a7e01fa (patch) | |
tree | 6fb337a1eb6da6033b467f666d512e888a450d94 | |
parent | 849fccf8312f734dddf4e3ea84eeabd2e243a10d (diff) | |
download | gcc-947f51d61b134a782d0405d827bce18d9a7e01fa.zip gcc-947f51d61b134a782d0405d827bce18d9a7e01fa.tar.gz gcc-947f51d61b134a782d0405d827bce18d9a7e01fa.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1z/decomp4.C | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c892d16..494924d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-01-11 Jakub Jelinek <jakub@redhat.com> + + * 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 <ebotcazou@adacore.com> * 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 95a02ec2..bc85263 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'" } |