Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr18016.C
blob9cf1ea3b70ae233f5655ae4397c1177a6ade1b3f
1 /* { dg-do compile } */
2 /* { dg-options "-Wuninitialized -Winit-self" } */
4 class X {
5   int i;
6   X() : i(i) { }   // { dg-warning "initialized with itself" }
7   X(int i) : i(i) { }
8   X(const X& x) : i(x.i) { }
9 };
11 // { dg-prune-output "In constructor" }