summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/ctor-init-1.C
blob: 0796972fcb505971357ddc5ead07fd2ad83fc7d1 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/11554
// { dg-options "-Wall" }

struct Y {
  Y ();
  int i1, i2; // { dg-warning "" }
};

Y::Y () : i2(0), i1(0) {} // { dg-warning "" }