]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decomp4.C (test): Use 2 identifier decomposition instead of just 1 for the decomposit...
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Jan 2017 11:47:30 +0000 (12:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Jan 2017 11:47:30 +0000 (12:47 +0100)
* g++.dg/cpp1z/decomp4.C (test): Use 2 identifier decomposition
instead of just 1 for the decomposition from struct C.

From-SVN: r244312

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp4.C

index c892d161ea0d742981220ba0d4e5822b44d287d5..494924df47f46b86fa9b8092e62335c23bdb230b 100644 (file)
@@ -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.
index 95a02ec27df9f337771d575117bd7fa24396dd34..bc85263e98617800ac5f0dad54bebe1b71fbd9a2 100644 (file)
@@ -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'" }