This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH Commitred] Fix PR target/48767


"Joseph S. Myers" <joseph@codesourcery.com> wrote:
> I think you should add a testcase to gcc.c-torture/compile, unless there 
> is already one that this patch fixes.

Ah, indeed.  How about the attached testcase?
BTW, is it valid C?

Regards,
	kaz
--
--- ORIG/trunk/gcc/testsuite/gcc.c-torture/compile/pr48767.c	1970-01-01 09:00:00.000000000 +0900
+++ trunk/gcc/testsuite/gcc.c-torture/compile/pr48767.c	2011-04-27 07:54:05.000000000 +0900
@@ -0,0 +1,9 @@
+/* PR target/48767 */
+/* { dg-do compile } */
+/* { dg-options "" } */
+
+void
+foo (__builtin_va_list ap)
+{
+  __builtin_va_arg (ap, void);
+}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]