]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 23 Dec 2004 21:39:03 +0000 (21:39 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 23 Dec 2004 21:39:03 +0000 (21:39 +0000)
'gcc-3_4-branch'.

From-SVN: r92567

gcc/testsuite/gcc.dg/empty2.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/empty2.c b/gcc/testsuite/gcc.dg/empty2.c
new file mode 100644 (file)
index 0000000..54b98f6
--- /dev/null
@@ -0,0 +1,15 @@
+/* { dg-do compile } */
+
+double d=0;
+
+struct A {} a; /* { dg-warning "(has no members)" } */
+
+void foo(struct A x)
+{
+  d=0;
+}
+
+void bar()
+{
+  if (d) foo(a);
+}