On Fri, Aug 17, 2012 at 8:34 PM, Iyer, Balaji V <balaji.v.i...@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