This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
testsuite execution question
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 25 Feb 2005 20:14:04 -0800
- Subject: testsuite execution question
I would like to write a short program to test the
command line parsing of gfortran. I know I can add
! {dg-do run}
at the top of the program to have dejagnu execute the
the a.out file. But, I want to execute "a.out 1 2 3".
Is this possible? I tried looking through gcc.dg and
gfortran.dg directories, but nothing jumped out as the
obvious way to do want I need.
If you're wondering the test program would look like
! { dg-do run }
! { dg?????? } How to specify "a.out 1 2 3"?
program args
integer i
i = iargc()
if (i /= 3) call abort
end program
--
Steve