Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;
}