This is the mail archive of the gcc@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: Question about Dejagnu C++ Execution Test


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


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