OSDN Git Service

2008-06-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jun 2008 04:39:11 +0000 (04:39 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jun 2008 04:39:11 +0000 (04:39 +0000)
PR fortran/36538
* gfortran.dg: namelist_48.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136777 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 507416c..c68ba41 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