blob: 0926f406e4f0cbf572ee738ed48c2d7915b744bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// PR c++/109868
// { dg-do compile }
// { dg-options "-O2" }
struct A { virtual void foo (); };
struct B { long b; int : 0; };
struct C : A { B c; };
void
bar (C *p)
{
*p = C ();
}
|