Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
());
}