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