repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged r158907 through r159238 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuninitialized-3.C
blob
dc3be3f67fab8c2679c785fbaad0ef5d76969b5f
1
// 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
}