]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/41154 (Comma required after P descriptor)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 25 Aug 2009 01:14:13 +0000 (01:14 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 25 Aug 2009 01:14:13 +0000 (01:14 +0000)
2009-08-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/41154
* gfortran.dg/fmt_error_8.f: New test.

From-SVN: r151071

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/fmt_error_8.f [new file with mode: 0644]

index 330e1cc80aa99fe97fff293b5bf2e7f1cf627858..83b2daa1b79be4f675c3cda12295e532748a04dd 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/41154
+       * gfortran.dg/fmt_error_8.f: New test.
+
 2009-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gcc.dg/torture/builtin-math-6.c (link_error): Accept a value
diff --git a/gcc/testsuite/gfortran.dg/fmt_error_8.f b/gcc/testsuite/gfortran.dg/fmt_error_8.f
new file mode 100644 (file)
index 0000000..1d630b7
--- /dev/null
@@ -0,0 +1,11 @@
+! { dg-do compile }
+! { dg-options "-std=f95" }
+! PR35754 -std=f95: Reject "1P2E12.4" w/o a comma after the "P" 
+! PR
+! Test case provided by Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+      character(40) :: fmt_string
+      write(*, '(1P2E12.4)') 1.0 ! { dg-error "Comma required" }
+      write(*, '(1PT12,F12.4)') 1.0 ! { dg-error "Comma required" }
+      write(*, '(1PE12.4)') 1.0 ! This is OK by the standard 10.1.1
+      write (*,'(1PD24.15,F4.2,0P)') 1.0d0 ! This OK too.
+      end