This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about Dejagnu C++ Execution Test
- From: Andrew Pinski <pinskia at gmail dot com>
- To: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Fri, 17 Aug 2012 20:47:48 -0700
- Subject: Re: Question about Dejagnu C++ Execution Test
- References: <BF230D13CA30DD48930C31D40993300016C5CAAE@FMSMSX102.amr.corp.intel.com>
On Fri, Aug 17, 2012 at 8:34 PM, Iyer, Balaji V <balaji.v.iyer@intel.com> wrote:
> Hello Everyone
> I have a question regarding a DejaGNU execution tests for C++. For C I used several C-torture routines (e.g. c-torture-execute) to add execution tests into the testsuite. I am not able to find a similar set of routine to use in C++. Can someone please point me if similar functions exists for C++? Also, any advice/pointers on how to write one would be great also.
Use g++.dg/torture and add one of the following to the beginning:
// { dg-do compile }
// { dg-do link }
// { dg-do assemble }
// { dg-do run }
This can be done for gcc.dg/torture also.
Thanks,
Andrew Pinski