OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wuninitialized-3.C] - Blame information for rev 307

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR C++/38908
2
// { dg-options "-Wuninitialized -O" }
3
 
4
struct empty {};
5
 
6
struct dfs_visitor {
7
    dfs_visitor() { }
8
    empty m_vis;
9
};
10
 
11
void bar(const dfs_visitor&);
12
void foo(void)
13
{
14
  dfs_visitor vis;
15
  dfs_visitor vis2 = vis;
16
  bar (vis2);
17
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.