1 /* { dg-do compile } */
2 /* { dg-options "-Wuninitialized -Winit-self" } */
3 
4 class X {
5   int i;
X()6   X() : i(i) { }   // { dg-warning "initialized with itself" }
X(int i)7   X(int i) : i(i) { }
X(const X & x)8   X(const X& x) : i(x.i) { }
9 };
10 
11 // { dg-prune-output "In constructor" }
12