Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
overload6.C
blob: fda22838bff4edbd589335ae7aeb59658e57729a [
file
] [
log
] [
blame
]
// { dg-do run }
extern
"C"
void
abort
();
struct
S1
{
int
f
()
{
return
0
;
}
int
f
()
const
{
return
1
;
}
};
struct
S2
:
public
S1
{
};
int
main
()
{
S2 s2
;
if
(
s2
.
f
()
!=
0
)
abort
();
}