Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gfortran.dg / execute_command_line_2.f90
blob3e34f322f07c80fa4da8be609f696d740b2f6e77
1 ! { dg-do run }
2 ! { dg-xfail-run-if "PR libfortran/67412" { *-*-solaris2.10 } }
4 ! Check that EXECUTE_COMMAND_LINE handles invalid command lines appropriately
6 integer :: s = 0, c = 0
7 character(len=255) :: msg = ""
9 ! This should fail, set CMDSTAT to nonzero value, and an error message
10 ! in CMDMSG.
11 call execute_command_line ("/nosuchfile", exitstat=s, cmdstat=c, cmdmsg=msg)
12 if (c == 0) call abort
13 if (len_trim(msg) == 0) call abort
15 end