This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Move yet another -Wunused-but-set* testcase to c-c++-common
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 6 May 2010 19:52:10 +0200
- Subject: [PATCH] Move yet another -Wunused-but-set* testcase to c-c++-common
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
This test got added after the C++ -Wunused-but-set-* support patch has been
prepared and so wasn't moved with the other ones. There is nothing
C specific on it, so the following patch moves it to get it tested in C++
too.
Tested on x86_64-linux, committed as obvious to trunk.
2010-05-06 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/Wunused-var-8.c: Move to...
* c-c++-common/Wunused-var-6.c: ... here. New test.
--- gcc/testsuite/gcc.dg/Wunused-var-8.c.jj 2010-05-05 19:10:56.000000000 +0200
+++ gcc/testsuite/gcc.dg/Wunused-var-8.c 2010-05-06 19:38:52.000000000 +0200
@@ -1,15 +0,0 @@
-/* PR c/43981 */
-/* { dg-do compile } */
-/* { dg-options "-Wunused" } */
-
-void g (char *);
-
-char
-f (int a)
-{
- int len = a * 3;
- char t[len];
-
- g (t);
- return t[0];
-}
--- gcc/testsuite/c-c++-common/Wunused-var-6.c.jj 2010-05-06 19:35:35.000000000 +0200
+++ gcc/testsuite/c-c++-common/Wunused-var-6.c 2010-05-05 19:10:56.000000000 +0200
@@ -0,0 +1,15 @@
+/* PR c/43981 */
+/* { dg-do compile } */
+/* { dg-options "-Wunused" } */
+
+void g (char *);
+
+char
+f (int a)
+{
+ int len = a * 3;
+ char t[len];
+
+ g (t);
+ return t[0];
+}
Jakub