re PR c++/82075 (structured binding fails with empty base class)
PR c++/82075 * g++.dg/cpp1z/decomp49.C: New test. From-SVN: r269504
This commit is contained in:
parent
3a3998f36a
commit
6fbaad2154
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2019-03-08 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/82075
|
||||
* g++.dg/cpp1z/decomp49.C: New test.
|
||||
|
||||
2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
|
||||
|
||||
* gcc.target/arm/f16_f64_conv_no_dp.c: New test.
|
||||
|
|
14
gcc/testsuite/g++.dg/cpp1z/decomp49.C
Normal file
14
gcc/testsuite/g++.dg/cpp1z/decomp49.C
Normal file
|
@ -0,0 +1,14 @@
|
|||
// PR c++/82075
|
||||
// { dg-do run { target c++11 } }
|
||||
// { dg-options "" }
|
||||
|
||||
struct B { };
|
||||
struct D : B { int i; };
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
auto [i] = D{}; // { dg-warning "only available with" "" { target c++14_down } }
|
||||
if (i != 0)
|
||||
__builtin_abort ();
|
||||
}
|
Loading…
Add table
Reference in a new issue