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