URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wuninitialized-3.C] - Rev 862
Go to most recent revision | Compare with Previous | Blame | View Log
// 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);
}
Go to most recent revision | Compare with Previous | Blame | View Log