Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
virtual2.C
blob: c93b89f44c01beeb0654dd72077881363b59311c [
file
] [
log
] [
blame
]
// { dg-do run }
struct
B
{
virtual
int
f
()
volatile
{
return
0
;
}
};
struct
D
:
public
B
{
virtual
int
f
()
{
return
1
;
}
};
int
main
()
{
volatile
D d
;
volatile
B
&
b
=
d
;
return
b
.
f
();
}