This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c-c++-common testsuite
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Thu, 06 Aug 2009 17:38:01 -0700
- Subject: Re: c-c++-common testsuite
- References: <6c33472e0908061506t1791b3a6l92db9947839a42c0@mail.gmail.com>
- Reply-to: janis187 at us dot ibm dot com
On Fri, 2009-08-07 at 00:06 +0200, Manuel LÃpez-IbÃÃez wrote:
> Often I want to test the exactly same testcase in C and C++, so I find
> myself adding duplicate tests under gcc.dg/ and g++.dg/. Would it be
> possible to have a shared testsuite dir that is run for both C and C++
> languages? (possibly with different default configurations, like
> adding -Wc++-compat to the commandline for C runs).
I've been thinking about that lately, it would be useful for several
kinds of functionality. We'd want effective targets for the language
for using different options and for providing different error/warning
checks for each language. I haven't looked into how to handle it with
DejaGnu, maybe something like gcc.shared and a [symbolic] link to it
called g++.shared; do links work with Subversion?
Janis