Sign in
llvm
/
llvm-archive
/
f91d1660b4827134c7666ae9637f21a2741d183f
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
g++.dg
/
init
/
new2.C
blob: 8b207d0a0337c78701dc91cc7e896ee8daaeba15 [
file
] [
log
] [
blame
]
// Origin: asharji@uwaterloo.ca
// { dg-do compile }
class
bar
{
public
:
bar
()
{
}
void
*
operator
new
(
__SIZE_TYPE__
,
void
*
storage
)
{
return
(
void
*)
1
;}
};
class
foo
{
public
:
void
mem
(
)
{
new
(
0
)
bar
;
}
};