Sign in
llvm
/
llvm-archive
/
80a0e6b09a6ccb2f8832d59b5fb8d96f9ae994c5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
warning2.C
blob: 6298587e8ff3dbaa31c70939956d566dbe536bdf [
file
] [
log
] [
blame
]
// { dg-do assemble }
// g++ ought to warn about casting a base pointer to a derived reference.
struct
A
{
virtual
void
f
()
=
0
;
};
struct
B
:
public
A
{
void
f
()
{
}
};
int
main
()
{
B
*
bp
;
A
&
ar
=
(
A
&)
bp
;
// { dg-warning "" }
}