re PR c++/89871 (Wall + designated initializers)
PR c++/89871 * g++.dg/cpp2a/desig14.C: New test. From-SVN: r270019
This commit is contained in:
parent
b56c578ce4
commit
a1c56deaa2
@ -1,3 +1,8 @@
|
||||
2019-03-29 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
PR c++/89871
|
||||
* g++.dg/cpp2a/desig14.C: New test.
|
||||
|
||||
2019-03-29 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* gcc.dg/ipa/ipa-icf-39.c: Prine '***dbgcnt' output.
|
||||
|
18
gcc/testsuite/g++.dg/cpp2a/desig14.C
Normal file
18
gcc/testsuite/g++.dg/cpp2a/desig14.C
Normal file
@ -0,0 +1,18 @@
|
||||
// PR c++/89871
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-options "-Wall" }
|
||||
|
||||
struct A {};
|
||||
struct B {};
|
||||
|
||||
struct S {
|
||||
union {
|
||||
A a;
|
||||
B b;
|
||||
};
|
||||
};
|
||||
|
||||
int main() {
|
||||
S s;
|
||||
s = S{.a = A{}};
|
||||
}
|
Loading…
Reference in New Issue
Block a user