Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuninitialized-3.C
blob: dc3be3f67fab8c2679c785fbaad0ef5d76969b5f [
file
] [
log
] [
blame
]
// PR C++/38908
// { dg-options "-Wuninitialized -O" }
struct
empty
{};
struct
dfs_visitor
{
dfs_visitor
()
{
}
empty m_vis
;
};
void
bar
(
const
dfs_visitor
&);
void
foo
(
void
)
{
dfs_visitor vis
;
dfs_visitor vis2
=
vis
;
bar
(
vis2
);
}