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