This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Tweak for gcc.dg/cpp/20000628-1.c
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: Tweak for gcc.dg/cpp/20000628-1.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 29 Jun 2000 20:33:22 -0600
- cc: gcc-patches at gcc dot gnu dot org, Jakub Jelinek <jakub at redhat dot com>
- Reply-To: law at cygnus dot com
In message <20000629122711.V279@wolery.cumb.org>you write:
> This patch makes 20000628-1.c trigger the bug it's supposed to test
> for, instead of that bug plus a stack of syntax-error complaints.
> asm(""); is rejected in -ansi mode, and all the dg tests run in -ansi
> mode unless that is specifically overridden.
>
> I took the opportunity to tighten up the test a bit.
>
> zw
>
> * gcc.dg/cpp/20000628-1a.h: Don't use asm(). On each
> of the first three inclusions, declare one variable. On the
> fourth, error.
> * gcc.dg/cpp/20000628-1.c (main): Reference the three variables
> declared by 20000628-1a.h.
This is fine. Please install this test.
jeff