re PR libfortran/36538 (namelist failure with tabs preceding object name)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 14 Jun 2008 04:39:11 +0000 (04:39 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 14 Jun 2008 04:39:11 +0000 (04:39 +0000)
2008-06-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/36538
* gfortran.dg: namelist_48.f90: New test.

From-SVN: r136777

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

index 507416c040e064f996da96c02da595b019e74c95..c68ba4144676225f41bede26ca4b6144e8c205f3 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/36538
+       * gfortran.dg: namelist_48.f90: New test.
+
 2008-06-14  Simon Martin  <simartin@users.sourceforge.net>
 
        PR c++/35317
diff --git a/gcc/testsuite/gfortran.dg/namelist_48.f90 b/gcc/testsuite/gfortran.dg/namelist_48.f90
new file mode 100644 (file)
index 0000000..e9a2928
--- /dev/null
@@ -0,0 +1,15 @@
+! { dg-do run }
+! { dg-options "-fbackslash" }
+! PR36538 namelist failure with tabs preceding object name
+      program check1
+      integer x
+      namelist/casein/x
+      open(1, status="scratch")
+      write(1,'(a)') "&CASEIN" 
+      write(1,'(a)') "\t\tx = 1"
+      write(1,'(a)') "/"
+      rewind(1)
+      x = 0
+      read(1,casein)
+      if (x.ne.1) call abort
+      end