]> gcc.gnu.org Git - gcc.git/commitdiff
re PR fortran/43832 (OPEN statement not diagnosing missing unit number)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 24 Apr 2010 12:07:07 +0000 (12:07 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 24 Apr 2010 12:07:07 +0000 (12:07 +0000)
2010-04-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/43832
* gfortran.dg/open_nounit.f90: New test.

From-SVN: r158685

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/open_nounit.f90 [new file with mode: 0644]

index d4331be406109363845af2a6bfd2b1b2144c2476..ae0519b041aa7cc927503a0dd99dac68fdccdf56 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/43832
+       * gfortran.dg/open_nounit.f90: New test.
+
 2010-04-24  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/43841
diff --git a/gcc/testsuite/gfortran.dg/open_nounit.f90 b/gcc/testsuite/gfortran.dg/open_nounit.f90
new file mode 100644 (file)
index 0000000..8781f6f
--- /dev/null
@@ -0,0 +1,6 @@
+! { dg-do compile }
+! PR43832 Missing UNIT in OPEN
+  open () ! { dg-error "must have UNIT" }
+  open (file="test") ! { dg-error "must have UNIT" }
+  end
+
This page took 0.075583 seconds and 5 git commands to generate.