Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-base4.C
blob: ab664394e5e4447bdd137ccdab54f43ebcc81291 [
file
] [
log
] [
blame
]
// PR c++/46626
// { dg-do run { target c++11 } }
struct
A
{
virtual
void
f
()
=
0
;
virtual
~
A
()
{
}
};
struct
B
:
A
{
virtual
void
f
()
{
}
};
static
void
foo
(
A
*
a
)
{
a
->
f
();
}
int
main
()
{
B b
;
foo
(&
b
);
return
0
;
}