]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 22 Dec 2003 06:14:43 +0000 (06:14 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 22 Dec 2003 06:14:43 +0000 (06:14 +0000)
'gcc-3_3-branch'.

From-SVN: r74927

gcc/testsuite/g++.dg/warn/ctor-init-1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/warn/ctor-init-1.C b/gcc/testsuite/g++.dg/warn/ctor-init-1.C
new file mode 100644 (file)
index 0000000..0796972
--- /dev/null
@@ -0,0 +1,9 @@
+// PR c++/11554
+// { dg-options "-Wall" }
+
+struct Y {
+  Y ();
+  int i1, i2; // { dg-warning "" }
+};
+
+Y::Y () : i2(0), i1(0) {} // { dg-warning "" }