modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / execute_command_line_2.f90
blob43b97c906defd4a2d5159231e749ccdd0684cbf9
1 ! { dg-do run }
3 ! Check that EXECUTE_COMMAND_LINE handles invalid command lines appropriately
5 integer :: s = 0, c = 0
6 character(len=255) :: msg = ""
8 ! This should fail, set CMDSTAT to nonzero value, and an error message
9 ! in CMDMSG.
10 call execute_command_line ("/nosuchfile", exitstat=s, cmdstat=c, cmdmsg=msg)
11 if (c == 0) STOP 1
12 if (len_trim(msg) == 0) STOP 2
14 end