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:
Marek Polacek 2019-03-29 15:24:00 +00:00 committed by Marek Polacek
parent b56c578ce4
commit a1c56deaa2
2 changed files with 23 additions and 0 deletions

View File

@ -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.

View 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{}};
}