Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuninitialized-10.C
blob: 1fd8b1d306920b5e10256b28eef54483576d735c [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-Wuninitialized" }
struct
A
{
int
f
,
g
;
A
()
{
f
=
g
;
// { dg-warning "g. is used uninitialized" }
}
};
A a
;