Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
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" }
}