Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
static_cast7.C
blob: 2398bedf1b4b8882ef116ee4d4f92aac50d01508 [
file
] [
log
] [
blame
]
// Regression test for bug 39415 (and its duplicate 44916).
struct
S
{};
struct
T
:
S
{};
int
f
(
const
T
*)
{
return
0
;
}
void
f
(
T
*);
int
main
()
{
S
*
s
(
0
);
int
a
=
f
(
static_cast
<
const
T
*>(
s
));
int
b
=
f
(
static_cast
<
const
T
*>(
0
));
}