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]

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


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