Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr18016.C
blob: 9cf1ea3b70ae233f5655ae4397c1177a6ade1b3f [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wuninitialized -Winit-self" } */
class
X
{
int
i
;
X
()
:
i
(
i
)
{
}
// { dg-warning "initialized with itself" }
X
(
int
i
)
:
i
(
i
)
{
}
X
(
const
X
&
x
)
:
i
(
x
.
i
)
{
}
};
// { dg-prune-output "In constructor" }