Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
new3.C
blob: 461b47b5e90a9fe8a406c1370aa0e33e404fa160 [
file
] [
log
] [
blame
]
extern
void
*
operator
new
(
__SIZE_TYPE__
);
// { dg-message "note" }
template
<
class
T
>
struct
C
{
void
f
()
{
int
*
node
;
new
(&
node
)
int
(
0
);
// { dg-error "new" }
}
};
void
*
operator
new
(
__SIZE_TYPE__
,
void
*
__p
);
void
g
()
{
C
<int>
c
;
c
.
f
();
}