Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
abi
/
local1.C
blob: 518193c8980998a5f2db856bf4499a31a601534b [
file
] [
log
] [
blame
]
// { dg-do run }
// { dg-additional-sources "local1-a.cc" }
#include
<typeinfo>
struct
B
{
virtual
void
b
()
{}
};
static
B
*
f
()
{
struct
D
:
public
B
{
};
return
new
D
;
}
extern
B
*
g
();
int
main
()
{
if
(
typeid
(*
f
())
==
typeid
(*
g
()))
return
1
;
}