Sign in
llvm
/
llvm-archive
/
7c2014e6d10413401c0984772345d9d61701eeba
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
defarg5.C
blob: 9b294766f3d697491e95a801f1315da4e6b10704 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// Bug: the SAVE_EXPR in the new expression remembers that it's in g(),
// causing the compiler to crash in h().
struct
A
{
A
();
};
void
f
(
A
*
=
new
A
);
void
g
()
{
f
();
}
void
h
()
{
f
();
}