repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuninitialized-18.C
blob
29ae77a39f5b1f05cf295cd9b67e57bc423ea1bb
1
// PR c++/96121
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wuninitialized" }
4
5
struct A {
6
A();
7
int i;
8
};
9
struct B {
10
B(A);
11
int i;
12
};
13
14
struct composed2 {
15
B b_;
16
A a_;
17
composed2() : b_(a_) {} // { dg-warning "member .composed2::a_. is used uninitialized" }
18
};
19
20
composed2 test() {
21
return composed2{};
22
}