Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp1z/decomp34.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
5 struct X { int a; }; | 5 struct X { int a; }; |
6 struct Y { int b, c, d; }; | 6 struct Y { int b, c, d; }; |
7 auto&& [t] = X{}; // { dg-warning "structured bindings only available with" "" { target c++14_down } } | 7 auto&& [t] = X{}; // { dg-warning "structured bindings only available with" "" { target c++14_down } } |
8 namespace A { namespace B { auto&& [u, v, ww] = Y{}; } } // { dg-warning "structured bindings only available with" "" { target c++14_down } } | 8 namespace A { namespace B { auto&& [u, v, ww] = Y{}; } } // { dg-warning "structured bindings only available with" "" { target c++14_down } } |
9 | 9 |
10 // { dg-final { scan-assembler "_ZGRDC1tE0" } } | 10 // { dg-final { scan-assembler "_ZGRDC1tE_" } } |
11 // { dg-final { scan-assembler "_ZGRN1A1BDC1u1v2wwEE1" } } | 11 // { dg-final { scan-assembler "_ZGRN1A1BDC1u1v2wwEE_" } } |