Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuninitialized-8.C
blob: cb9cfee6cabc3a8e1a3551a31838a726e1086a2a [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-Wuninitialized" }
struct
A
;
struct
B
{
B
(
A
);
};
struct
C
{
template
<
typename
PassT
>
void
m_fn1
(
PassT
p1
)
{
new
B
(
p1
);
}
// { dg-bogus "uninitialized" }
};
struct
A
{};
void
fn1
()
{
C a
;
a
.
m_fn1
(
A
());
}