Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuninitialized-1.C
blob: 7b1b90b944d3ce8269418556632710072930f3da [
file
] [
log
] [
blame
]
/* { dg-options "-O2 -Wuninitialized" } */
struct
Empty
{
Empty
()
{}
};
/* { dg-bogus "uninitialized" } */
struct
Other
{
Other
(
const
Empty
&
e_
)
:
e
(
e_
)
{}
Empty
e
;
};
void
bar
(
Other
&);
void
foo
()
{
Empty
e
;
Other
o
(
e
);
bar
(
o
);
}