Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr55260-1.C
blob: 552da8df2620832ca73b82f9a6f65fb463342a8e [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-std=gnu++0x -fno-inline" } */
/* { dg-add-options bind_pic_locally } */
struct
B
{
constexpr
B
():
bp
()
{}
~
B
()
{
if
(
bp
)
bp
->
f
();
}
void
f
();
B
*
bp
;
};
struct
A
{
B b
;
};
void
foo
()
{
A a
;
}