Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuninitialized-32.C
blob: 144a99e0f9385437685f562b1295469432f1b4e9 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-additional-options "-Wall" }
void
*
operator
new
[](
__SIZE_TYPE__
,
void
*
__p
);
struct
allocator
{
~
allocator
();
};
void
*
foo
(
void
*
p
)
{
return
p
?
new
(
p
)
allocator
[
1
]
:
new
allocator
[
1
];
// { dg-bogus "uninitialized" }
}